hoodiehq-archive / my-first-hoodie

⛔ deprecated
Other
157 stars 35 forks source link

NPM version error on `hoodie new <appname>` #43

Closed martin-hewitt closed 10 years ago

martin-hewitt commented 10 years ago

Installed hoodie-cli from NPM today, went to run hoodie new <appname> and hit the following error:

426 error Error: No compatible version found: hoodie-pocket-uikit@'^1.0.0'
426 error Valid install targets:
426 error ["1.0.0","1.0.1","1.0.2"]
426 error     at installTargetsError (/Users/martinh/.nvm/v0.10.15/lib/node_modules/npm/lib/cache.js:719:10)
426 error     at /Users/martinh/.nvm/v0.10.15/lib/node_modules/npm/lib/cache.js:638:10
426 error     at RegClient.get_ (/Users/martinh/.nvm/v0.10.15/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:105:14)
426 error     at RegClient.<anonymous> (/Users/martinh/.nvm/v0.10.15/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:41:12)
426 error     at fs.js:266:14
426 error     at /Users/martinh/.nvm/v0.10.15/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:103:5
426 error     at Object.oncomplete (fs.js:107:15)
427 error If you need help, you may report this log at:
427 error     <http://github.com/isaacs/npm/issues>
427 error or email it to:
427 error     <npm-@googlegroups.com>
428 error System Darwin 13.1.0
429 error command "/Users/martinh/.nvm/v0.10.15/bin/node" "/Users/martinh/.nvm/v0.10.15/bin/npm" "install" "--production" "--cache-min" "99999999" "--loglevel" "silly"
430 error cwd /Users/martinh/.hoodie/cache/my-first-hoodie
431 error node -v v0.10.15
432 error npm -v 1.3.5

I've cleaned hoodie and npm caches, and get the same error. My NPM registry is set to https://registry.npmjs.org/

gr2m commented 10 years ago

I just try to reproduce it, but no luck. Maybe @svnlto can help?

svnlto commented 10 years ago
431 error node -v v0.10.15
432 error npm -v 1.3.5

this tell's me that your npm version is too old (your node.js version too btw..) to handle the ^ in the version number.

svnlto commented 10 years ago

once you've updated, you might want to run hoodie cache clean and retry :)

martin-hewitt commented 10 years ago

Thanks, that works. I'm happy to add in a guard to this, and submit a PR, but I can't find anything that indicates the minimum node version required?

svnlto commented 10 years ago

@martin-hewitt you'd probably want to check against this version of npm https://github.com/npm/npm/releases/tag/v1.4.3 see release notes

martin-hewitt commented 10 years ago

Ace, thanks @svnlto.