after installed dojo/cli, and running dojo command, the programe print "Invalid response from npm search"
tun100 opened this issue · comments
Hello, I'm following your website (https://dojo.io/tutorials/001_static_content/), and used npm to install @dojo/cli and @dojo/cli-create-app, the execute command like this :
#!/bin/bash
npm install -g @dojo/cli
npm install -g @dojo/cli-create-app
dojo create app --name first-dojo-app # right here, the program noticed npm install error, and just exit, the error msg notice because dojo-interface was deprecated, so install is not totally finish, so i use yarn to install
cd first-dojo-app
yarn # instead of not full npm install
dojo build -m dev -w memory -s
# after execute this command, the dojo print "Invalid response from npm search" info, but i don't know where the invalid response is, and what the invalid content is
This is my system info and npm,node env version:
1, node v8.4.0
2, npm v5.3.0
3, Ubuntu 16.04.2 LTS
4, yarn v1.1.0
Is that system environment not satisfield? Should I need to release version? Or change the npm source url? Or dojo cli tools is not compatible with the Linux system?
I wanna to use dojo, and wanna study by dojo website, but cannot success create app step by step, could you help, Thanks a lot
Can you provide the error you are seeing?
@nicknisi Sure, here's my install log on Ubuntu. At the last, the dojo command print 'Invalid response from npm search', and after half of a minutes, the execute command can running normally, print info about the compile detail, then I can access 9999 port at my host ip successly.
May be the question has solved, ignore the "Invalid" msg, then wait moment, the program can work well
➜ n cat /etc/issue
Ubuntu 16.04.2 LTS \n \l
➜ n cat /proc/version
Linux version 4.15.0-29-generic (buildd@lcy01-amd64-024) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10)) #31~16.04.1-Ubuntu SMP Wed Jul 18 08:54:04 UTC 2018
➜ n ls -a
. ..
➜ n npm i -g @dojo/cli
/usr/local/nodev8.4.0/bin/dojo -> /usr/local/nodev8.4.0/lib/node_modules/@dojo/cli/bin/dojo.js
+ @dojo/cli@3.0.0
added 153 packages in 16.924s
➜ n npm i -g @dojo/cli-create-app
+ @dojo/cli-create-app@3.0.0
added 44 packages in 7.135s
➜ n whereis dojo
dojo: /usr/local/nodev8.4.0/bin/dojo
➜ n ls -al
总用量 8
drwxrwxr-x 2 laihuanmin laihuanmin 4096 8月 4 08:59 .
drwxr-xr-x 41 laihuanmin laihuanmin 4096 8月 4 08:56 ..
➜ n dojo create app --name first-dojo-app
Invalid response from npm search
Creating your new app: first-dojo-app
Creating Directories
create first-dojo-app
create first-dojo-app/src
create first-dojo-app/src/img
create first-dojo-app/src/styles
create first-dojo-app/src/widgets
create first-dojo-app/src/widgets/styles
create first-dojo-app/tests
create first-dojo-app/tests/unit
create first-dojo-app/tests/unit/widgets
create first-dojo-app/tests/functional
Creating Files
create package.json
create tsconfig.json
create .gitignore
create README.md
create src/img/logo.svg
create src/index.html
create src/main.ts
create src/main.css
create src/widgets/HelloWorld.ts
create src/widgets/styles/helloWorld.m.css
create src/widgets/styles/helloWorld.m.css.d.ts
create tests/unit/all.ts
create tests/unit/widgets/all.ts
create tests/unit/widgets/HelloWorld.ts
create tests/functional/all.ts
create tests/functional/main.ts
Running npm install
failed npm install
exit code: 1
➜ n echo "here exit code 1, and no detail msg more"
here exit code 1, and no detail msg more
➜ n echo "then i enter the dir, and execute npm install"
then i enter the dir, and execute npm install
➜ n ls -al
总用量 12
drwxrwxr-x 3 laihuanmin laihuanmin 4096 8月 4 09:03 .
drwxr-xr-x 41 laihuanmin laihuanmin 4096 8月 4 08:56 ..
drwxrwxr-x 4 laihuanmin laihuanmin 4096 8月 4 09:03 first-dojo-app
➜ n cd first-dojo-app
➜ first-dojo-app ls
package.json README.md src tests tsconfig.json
➜ first-dojo-app ls -a
. .. .gitignore package.json README.md src tests tsconfig.json
➜ first-dojo-app npm install
npm WARN deprecated postcss-cssnext@3.1.0: 'postcss-cssnext' has been deprecated in favor of 'postcss-preset-env'. Read more at https://moox.io/blog/deprecating-cssnext/
npm WARN deprecated @dojo/interfaces@0.2.1: @dojo/interfaces is deprecated
npm ERR! Unexpected end of input at 1:7953
npm ERR! 22f","size":21982,"noattachment":false,"tarball":"http://registry.npm
npm ERR! ^
npm ERR! A complete log of this run can be found in:
npm ERR! /home/laihuanmin/.npm/_logs/2018-08-04T01_09_49_684Z-debug.log
➜ first-dojo-app ls -a
. .. .gitignore package.json README.md src tests tsconfig.json
➜ first-dojo-app yarn
yarn install v1.1.0
warning package.json: No license field
info No lockfile found.
warning first-dojo-app@1.0.0: No license field
[1/4] Resolving packages...
warning postcss-cssnext@3.1.0: 'postcss-cssnext' has been deprecated in favor of 'postcss-preset-env'. Read more at https://moox.io/blog/deprecating-cssnext/
warning browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning @dojo/interfaces@0.2.1: @dojo/interfaces is deprecated
warning @dojo/interfaces@0.2.1: @dojo/interfaces is deprecated
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "postcss-cssnext@3.1.0" has unmet peer dependency "caniuse-lite@^1.0.30000697".
warning "tslint@5.8.0" has unmet peer dependency "typescript@>=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev".
[4/4] Building fresh packages...
success Saved lockfile.
Done in 44.48s.
➜ first-dojo-app ls -a
. .. .gitignore node_modules package.json README.md src tests tsconfig.json yarn.lock
➜ first-dojo-app ls -a node_modules
. end-of-stream loglevelnext regenerate
.. enhanced-resolve log-symbols regenerator-runtime
abab entities log-update regex-cache
accepts errno longest regex-not
acorn error-ex loose-envify regexpu-core
acorn-dynamic-import es5-ext loud-rejection registry-auth-token
acorn-globals es6-iterator lower-case registry-url
ajv es6-map lowercase-keys regjsgen
ajv-keywords es6-promise lru-cache regjsparser
align-text es6-set make-dir relateurl
alphanum-sort es6-symbol make-error remove-trailing-separator
amdefine es6-weak-map map-cache renderkid
ansi-align es-abstract map-obj repeat-element
ansi-escapes escape-html map-visit repeating
ansi-html escape-string-regexp math-expression-evaluator repeat-string
ansi-regex escodegen math-random request
ansi-styles escope md5.js request-promise-core
anymatch esprima media-typer request-promise-native
append-transform esrecurse mem require-directory
aproba es-to-primitive memory-fs require-from-string
argparse estraverse meow require-main-filename
array-equal esutils merge-descriptors resolve
array-filter etag methods resolve-url
array-find-index event-emitter micromatch restore-cursor
array-flatten events miller-rabin ret
array-map evp_bytestokey mime rgb
array-reduce execa mime-db rgb-hex
array-union exif-parser mime-types right-align
array-uniq expand-brackets mimic-fn rimraf
array-unique expand-range min-document ripemd160
arr-diff express minimalistic-assert run-queue
arr-flatten extend minimalistic-crypto-utils safe-buffer
arrify extend-shallow minimatch safer-buffer
arr-union extglob minimist safe-regex
asn1 extract-text-webpack-plugin mississippi sax
asn1.js extsprintf mixin-deep schema-utils
assert fast-deep-equal mkdirp seek-bzip
assertion-error fast-json-stable-stringify move-concurrently seekout
assert-plus fast-levenshtein ms semver
assign-symbols fastparse nanomatch semver-diff
ast-types fd-slicer negotiator send
async file-loader neo-async serve-static
async-each filename-regex next-tick set-blocking
asynckit filesize no-case setimmediate
async-limiter file-type node-dir set-immediate-shim
atob filled-array node-libs-browser setprototypeof
autoprefixer fill-range node-status-codes set-value
auto-require-webpack-plugin filter-css normalize-package-data sha.js
aws4 finalhandler normalize-path shebang-command
aws-sign2 find-cache-dir normalize-range shebang-regex
babel-code-frame find-up normalize-url shell-quote
babel-generator flatten npm-run-path signal-exit
babel-messages flush-write-stream nth-check simple-swizzle
babel-runtime foreach num2fraction slash
babel-template for-each number-is-nan slide
babel-traverse forever-agent nwmatcher snapdragon
babel-types for-in oauth-sign snapdragon-node
babylon form-data object-assign snapdragon-util
balanced-match for-own object.assign sort-keys
base forwarded object-copy source-list-map
base64-js fragment-cache object.getownpropertydescriptors source-map
bcrypt-pbkdf fresh object-keys source-map-loader-cli
benchmark from2 object.omit source-map-resolve
big.js fs-constants object.pick source-map-support
bignumber.js fs-extra object-visit source-map-url
.bin fs.realpath once spdx-correct
binary-extensions fs-write-stream-atomic onecolor spdx-exceptions
bl function-bind onetime spdx-expression-parse
bluebird generic-names on-finished spdx-license-ids
bmp-js get-caller-file opener split-string
bn.js get-func-name optimist sprintf-js
body-parser getpass optimize-css-assets-webpack-plugin sshpk
boolbase get-stdin optionator ssri
boxen get-stream ora static-extend
brace-expansion get-value os-browserify statuses
braces glob osenv stealthy-require
brorand global os-homedir stream-browserify
browserify-aes globalize os-locale stream-each
browserify-cipher globals os-tmpdir stream-http
browserify-des glob-base package-json stream-shift
browserify-rsa globby pako stream-to
browserify-sign glob-parent parallel-transform stream-to-buffer
browserify-zlib glob-to-regexp param-case strict-uri-encode
browser-process-hrtime got parse5 string_decoder
browserslist graceful-fs parse-asn1 string-width
buffer graceful-readlink parse-bmfont-ascii strip-ansi
buffer-alloc gzip-size parse-bmfont-binary strip-bom
buffer-alloc-unsafe handlebars parse-bmfont-xml strip-dirs
buffer-crc32 har-schema parse-glob strip-eof
buffer-equal har-validator parse-headers strip-indent
buffer-fill has parse-json strip-json-comments
buffer-from has-ansi parse-passwd style-loader
buffer-xor has-flag parseurl supports-color
builtin-modules hash-base pascalcase svgo
builtin-status-codes hash.js path-browserify symbol-tree
bytes has-symbols path-dirname tapable
cacache has-value path-exists tar-stream
cache-base has-values path-is-absolute @theintern
camelcase he path-key through
camel-case hmac-drbg path-parse through2
camelcase-keys hoek path-to-regexp timed-out
caniuse-api homedir-polyfill path-type timers-browserify
caniuse-db hosted-git-info pathval tinycolor2
caniuse-lite html-comment-regex pbkdf2 to-arraybuffer
capture-stack-trace html-encoding-sniffer pend to-buffer
caseless html-entities pepjs to-fast-properties
center-align html-minifier performance-now to-object-path
chai htmlparser2 p-finally topo
chalk html-webpack-include-assets-plugin pify toposort
charm html-webpack-plugin pinkie to-regex
check-error http-errors pinkie-promise to-regex-range
chokidar https-browserify pixelmatch tough-cookie
chownr http-signature pixrem tr46
cipher-base iconv-lite pkg-dir trim
clap icss-replace-symbols platform trim-newlines
class-utils icss-utils pleeease-filters trim-right
cldrjs ieee754 p-limit tsconfig
clean-css iferr p-locate tslib
clean-webpack-plugin ignore pn tslint
cli-boxes immediate pngjs tslint-loader
cli-columns imports-loader posix-character-classes ts-loader
cli-cursor imurmurhash postcss ts-node
cli-spinners indent-string postcss-apply tsutils
cliui indexes-of postcss-attribute-case-insensitive tty-browserify
clone indexof postcss-calc tunnel-agent
co inflight postcss-color-function tweetnacl
coa inherits postcss-color-gray type-check
code-point-at ini postcss-color-hex-alpha typedarray
collection-visit intern postcss-color-hsl typed-css-modules
color interpret postcss-color-hwb type-detect
color-convert intersection-observer postcss-colormin type-is
colormin invariant postcss-color-rebeccapurple @types
color-name invert-kv postcss-color-rgb typescript
colors ipaddr.js postcss-color-rgba-fallback uglify-es
color-string ip-regex postcss-convert-values uglify-js
combined-stream is-absolute-url postcss-cssnext uglifyjs-webpack-plugin
commander is-accessor-descriptor postcss-custom-media uglify-to-browserify
command-exists isarray postcss-custom-properties umd-compat-loader
commondir is-arrayish postcss-custom-selectors unbzip2-stream
common-tags is-binary-path postcss-discard-comments union-value
component-emitter is-buffer postcss-discard-duplicates uniq
concat-map is-builtin-module postcss-discard-empty uniqs
concat-stream is-callable postcss-discard-overridden unique-filename
configstore is-data-descriptor postcss-discard-unused unique-slug
console-browserify is-date-object postcss-filter-plugins units-css
constants-browserify is-descriptor postcss-font-family-system-ui universalify
content-disposition is-directory postcss-font-variant unpipe
content-type is-dotfile postcss-image-set-polyfill unset-value
content-type-parser isemail postcss-import unzip-response
cookie is-equal-shallow postcss-initial upath
cookie-signature isexe postcss-load-config update-notifier
copy-concurrently is-extendable postcss-loader upper-case
copy-descriptor is-extglob postcss-load-options urix
copy-webpack-plugin is-finite postcss-load-plugins url
core-js is-fullwidth-code-point postcss-media-minmax url-join
core-util-is is-function postcss-media-query-parser url-parse-lax
cosmiconfig is-glob postcss-merge-idents url-regex
create-ecdh is-natural-number postcss-merge-longhand use
create-error-class is-npm postcss-merge-rules util
create-hash is-number postcss-message-helpers utila
create-hmac isnumeric postcss-minify-font-values util-deprecate
cross-spawn is-obj postcss-minify-gradients util.promisify
crypto-browserify isobject postcss-minify-params utils-merge
css is-plain-obj postcss-minify-selectors uuid
css-color-function is-plain-object postcss-modules-extract-imports v8flags
css-color-names is-posix-bracket postcss-modules-local-by-default validate-npm-package-license
cssesc is-primitive postcss-modules-resolve-imports vary
css-loader is-redirect postcss-modules-scope vendors
css-modules-loader-core is-regex postcss-modules-values verror
css-modules-require-hook is-retry-allowed postcss-nesting viewport-dimensions
cssnano isstream postcss-normalize-charset vm-browserify
csso is-stream postcss-normalize-url w3c-hr-time
cssom is-svg postcss-ordered-values watchpack
css-select is-symbol postcss-pseudo-class-any-link web-animations-js
css-selector-tokenizer istanbul-lib-coverage postcss-pseudoelements @webcomponents
css-select-umd istanbul-lib-hook postcss-reduce-idents webidl-conversions
cssstyle istanbul-lib-instrument postcss-reduce-initial webpack
css-unit-converter istanbul-lib-report postcss-reduce-transforms webpack-bundle-analyzer-sunburst
css-what istanbul-lib-source-maps postcss-replace-overflow-wrap webpack-chunk-hash
currently-unhandled istanbul-reports postcss-selector-matches webpack-dev-middleware
cyclist is-there postcss-selector-not webpack-hot-middleware
d is-typedarray postcss-selector-parser webpack-log
dashdash is-utf8 postcss-svgo webpack-manifest-plugin
date-now is-windows postcss-unique-selectors webpack-mild-compile
debug jimp postcss-value-parser webpack-pwa-manifest
decamelize joi postcss-values-parser webpack-sources
decode-uri-component jpeg-js postcss-zindex whatwg-encoding
decompress js-base64 prelude-ls whatwg-url
decompress-tar jsbn prepend-http whet.extend
decompress-tarbz2 jsdom preserve which
decompress-targz jsesc pretty-bytes which-module
decompress-unzip json5 pretty-error widest-line
deep-eql json-css-module-loader private window-size
deep-extend jsonfile process wordwrap
deep-is jsonify process-nextick-args workbox-background-sync
default-require-extensions json-loader promise-inflight workbox-broadcast-cache-update
defined json-schema proxy-addr workbox-build
define-properties json-schema-traverse prr workbox-cacheable-response
define-property json-stable-stringify pseudomap workbox-cache-expiration
delayed-stream json-stringify-safe psl workbox-core
depd jsprim p-try workbox-google-analytics
des.js js-tokens public-encrypt workbox-navigation-preload
destroy js-yaml pump workbox-precaching
detect-indent jszip pumpify workbox-range-requests
diff kind-of punycode workbox-routing
diffie-hellman klaw q workbox-strategies
dir-glob last-call-webpack-plugin qs workbox-streams
@dojo latest-version querystring workbox-sw
domain-browser lazy-cache query-string workbox-webpack-plugin
dom-converter lcid querystring-es3 worker-farm
domelementtype left-pad randomatic wrap-ansi
domexception levn randombytes wrappy
domhandler lie randomfill write-file-atomic
dom-serializer load-bmfont range-parser ws
domutils loader-runner raw-body xdg-basedir
dom-walk loader-utils rc xhr
dot-prop load-json-file readable-stream xml2js
duplexer locate-path read-all-stream xmlbuilder
duplexer2 lodash read-cache xml-name-validator
duplexify lodash.camelcase read-chunk xml-parse-from-string
ecc-jsbn lodash.debounce readdirp xtend
ee-first lodash.memoize read-pkg y18n
ejs lodash._reinterpolate read-pkg-up yargs
electron-to-chromium lodash.sortby recast yargs-parser
elliptic lodash.template redent .yarn-integrity
emojis-list lodash.templatesettings reduce-css-calc yauzl
encodeurl lodash.uniq reduce-function-call yn
➜ first-dojo-app cat package.json
{
"name": "first-dojo-app",
"version": "1.0.0",
"dependencies": {
"@dojo/framework": "~3.0.0",
"tslib": "~1.8.1"
},
"devDependencies": {
"@dojo/cli-build-app": "~3.0.0",
"@dojo/cli-test-intern": "~3.0.0",
"@types/node": "~9.6.5",
"typescript": "~2.6.1"
}
}
➜ first-dojo-app npm --version
5.3.0
➜ first-dojo-app node --version
v8.4.0
➜ first-dojo-app npm config list
; cli configs
metrics-registry = "https://registry.npm.taobao.org/"
scope = ""
user-agent = "npm/5.3.0 node/v8.4.0 linux x64"
; userconfig /home/laihuanmin/.npmrc
registry = "https://registry.npm.taobao.org/"
; node bin location = /usr/local/nodev8.4.0/bin/node
; cwd = /home/n/first-dojo-app
; HOME = /home/laihuanmin
; "npm config ls -l" to show all defaults.
➜ first-dojo-app yarn config list
yarn config v1.1.0
warning package.json: No license field
info yarn config
{ 'version-tag-prefix': 'v',
'version-git-tag': true,
'version-git-sign': false,
'version-git-message': 'v%s',
'init-version': '1.0.0',
'init-license': 'MIT',
'save-prefix': '^',
'ignore-scripts': false,
'ignore-optional': false,
registry: 'https://registry.yarnpkg.com',
'strict-ssl': true,
'user-agent': 'yarn/1.1.0 npm/? node/v8.4.0 linux x64',
email: 'lai_huanmim@163.com',
lastUpdateCheck: 1533208001320,
username: 'admin' }
info npm config
{ registry: 'https://registry.npm.taobao.org/',
'//localhost:8081/repository/gsmr/:_authToken': 'NpmToken.82c9f81c-0c61-3cb7-a09a-378432ed18b5' }
Done in 0.08s.
➜ first-dojo-app ls
node_modules package.json README.md src tests tsconfig.json yarn.lock
➜ first-dojo-app dojo build -m dev -w memory -s
Invalid response from npm search
ℹ cli-build-app: 1.0.0
ℹ typescript: 2.6.2
✔ hash: 604831f0b558fc577dbe
✖ errors: 0
⚠ warnings: 0
chunks:
main runtime
assets:
2xS-3HMh.svg (107.52kb) main.css (3.07kb) manifest.json (0.11kb)
index.html (0.36kb) main.js (859.83kb) runtime.js (76.13kb)
output at: file:////home/n/first-dojo-app/output/dev
The build completed successfully.
Listening on port 9999...
Hmm, I'm not having issues running the dojo
command on Ubuntu. From the looks of it you have your registry set to https://registry.npm.taobao.org/
. Could that be the issue?
@nicknisi it's maybe because the registry set question, it will print 'Invalid respon..." error msg, but seems like the error msg impact nothing.
Yeah, it should still work. @JamesMilnerUK was also experiencing this issue. We'll continue to look into it and find a fix.