Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install on 0.8 broken #6

Closed
knolleary opened this issue Jun 28, 2014 · 3 comments
Closed

npm install on 0.8 broken #6

knolleary opened this issue Jun 28, 2014 · 3 comments

Comments

@knolleary
Copy link

npm install of console-browserify fails when using node 0.8.

npm ERR! Error: No compatible version found: date-now@'^0.1.4'
npm ERR! Valid install targets:
npm ERR! ["0.1.0","0.1.1","0.1.3","0.1.2","0.1.4","1.0.0","1.0.1"]
npm ERR!     at installTargetsError (/opt/node/node-v0.8.27-linux-    x64/lib/node_modules/npm/lib/cache.js:719:10)
npm ERR!     at /opt/node/node-v0.8.27-linux-x64/lib/node_modules/npm/lib/cache.js:641:10
npm ERR!     at saved (/opt/node/node-v0.8.27-linux-x64/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:138:7)
npm ERR!     at Object.oncomplete (fs.js:302:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.8.0-42-generic
npm ERR! command "/opt/node/node-v0.8.27-linux-x64/bin/node" "/opt/node/node-v0.8.27-linux-x64/bin/npm" "install" "console-browserify"
npm ERR! cwd /opt/node/node-v0.8.27-linux-x64/bin
npm ERR! node -v v0.8.27
npm ERR! npm -v 1.2.30

Changing the version dependency of date-now to ~0.1.4 works.

Original spotted when trying to install grunt-contrib-jshint on node 0.8 (which it claims support for)

knolleary added a commit to node-red/node-red that referenced this issue Jun 28, 2014
Cannot npm install grunt-contrib-jshint due to this
browserify/console-browserify#6
@Raynos
Copy link
Collaborator

Raynos commented Jun 28, 2014

This fails because your using an old npm client.

Latest version of npm is 1.4.x.

Just upgrade npm (npm i npm@latest -g)

@knolleary
Copy link
Author

Ah of course. Although this does still mean the package is broken for the version of npm that ships with node 0.8. Might be worth a note in the readme?

I originally hit this on our Travis ci build - found this work around.

@Raynos
Copy link
Collaborator

Raynos commented Jun 28, 2014

its not really worth a note because 1.5 is coming out soon and 1.2 is 3 versions old (really old).

The problem is no-one at travis cares enough to fix the 0.8 defaults :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants