Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Required node version not working? #61

Closed
rmetzler opened this issue Jun 7, 2010 · 4 comments · May be fixed by zhouyoufu/npm#3, bumplzz69/npm#21, dsevolve23/npm#23 or dsevolve23/npm#24
Closed

Required node version not working? #61

rmetzler opened this issue Jun 7, 2010 · 4 comments · May be fixed by zhouyoufu/npm#3, bumplzz69/npm#21, dsevolve23/npm#23 or dsevolve23/npm#24

Comments

@rmetzler
Copy link

rmetzler commented Jun 7, 2010

I think v0.1.97-18-g9be6c50 should be sufficient when version 0.1.97 is required.

rmetzler@Richard-Metzlers-iMac:~/Code/npm$ sudo npm install riak-js
The "ini" module will be removed in future versions of Node, please extract it into your own code.
npm configfile /Users/rmetzler/.npmrc
npm sudo true
npm cli [ 'install', 'riak-js' ]
npm install pkg riak-js
npm fetch data riak-js
npm GET riak-js
npm install pkg riak-js
npm install pkg riak-js@0.2.0
npm readJson /usr/local/lib/node/.npm/.cache/riak-js/0.2.0/package.json
npm GET riak-js/0.2.0
npm fetch http://registry.npmjs.org/riak-js/-/riak-js-0.2.0.tgz to /usr/local/lib/node/.npm/.cache/riak-js/0.2.0/package.tgz
npm content-length unknown
npm fetch finished
npm bytes 15376
npm exec tar "xzf" "/usr/local/lib/node/.npm/.cache/riak-js/0.2.0/package.tgz" "--strip" "1" "-C" "/usr/local/lib/node/.npm/.cache/riak-js/0.2.0/package"
npm readJson /usr/local/lib/node/.npm/.cache/riak-js/0.2.0/package/package.json
npm testEngine required: node ">=0.1.97"
npm fail Error installing riak-js@0.2.0

npm ! Error: node version not compatible:
required: >=0.1.97
actual: v0.1.97-18-g9be6c50
at nodeUnsatisfied (/usr/local/lib/node/.npm/npm/0.1.13/package/lib/utils/read-json.js:75:6)
at testEngine (/usr/local/lib/node/.npm/npm/0.1.13/package/lib/utils/read-json.js:68:42)
at /usr/local/lib/node/.npm/npm/0.1.13/package/lib/utils/read-json.js:44:5
at fs:83:13
at node.js:204:9

npm failure try running: 'npm help install'
npm failure Report this entire log at http://github.com/isaacs/npm/issues
npm failure or email it to npm-@googlegroups.com
rmetzler@Richard-Metzlers-iMac:~/Code/npm$ node --version
v0.1.97-18-g9be6c50

@isaacs
Copy link
Contributor

isaacs commented Jun 8, 2010

Discussed in irc. Works as expected in npm@0.1.14

@rmetzler
Copy link
Author

rmetzler commented Jun 8, 2010

sorry, could you please explain or provide a link to where I can find more information version 0.1.97-18-g9be6c50 is not sufficient for a package that requires 0.1.97 ?

tested with npm@0.1.14

@isaacs
Copy link
Contributor

isaacs commented Jun 8, 2010

Can you please post a link to the package.json file?

Note that now, 0.1.97-18-g9be6c50 is interpreted as being greater than 0.1.97. So, if you have this in your package.json, then it won't satisfy:

"engines" : { "node" : "0.1.97" }

But, this should work:

"engines" : { "node" : ">=0.1.97" }

If that's what you'er doing, then it might be affected by a regression in semver that I introduced last night and just fixed in 0.1.15.

@rmetzler
Copy link
Author

rmetzler commented Jun 8, 2010

I just pulled the new commits from GitHub and re-installed npm. It works now as expected. Thank you very much!

@npm npm locked and limited conversation to collaborators Oct 17, 2014
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants