isaacs/npm — Issue #1795: npm ERR! Error: version not found
Author: zencuke
Created: 2011-11-27 19:33:18+00:00
State: open

Sorry. I'm a newby and I know nothing about node or npm. I'm just trying to install lockerProject and am following the directions on their web site. I apologize if this is not the right place to ask for help. Locker has many dependencies and I have been going around in circles trying to get them to line up. In the process I have installed node and npm several times (different versions) and I suspect I have broken something along the way because the version number reported by 'npm -version' is not the version in the error message. See log below.

Note: I suggest that the error message could be enhanced. It says "version not found" but it would have been handy if it also mentioned exactly which version'd entity it was looking for.

I installed the node version required by locker from the tarball. From my bash history:
423 tar -zvxf node-v0.4.9.tar.gz
424 cd node-v0.4.9
427 ./configure
428 make
429 sudo make install

The most recently installed version of npm on my system was installed with:
papas-macintosh: curl http://npmjs.org/install.sh | sudo sh
papas-macintosh:Locker steven$ npm -version
1.0.106

Here is my error:

papas-macintosh:Locker steven$
papas-macintosh:Locker steven$ sudo npm install
npm ERR! Error: version not found: 1.0.27 : npm/1.0.27
npm ERR! at Request._callback (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:180:12)
npm ERR! at Request.callback (/usr/local/lib/node_modules/npm/node_modules/request/main.js:99:22)
npm ERR! at Request. (/usr/local/lib/node_modules/npm/node_modules/request/main.js:361:18)
npm ERR! at Request.emit (events.js:64:17)
npm ERR! at IncomingMessage. (/usr/local/lib/node_modules/npm/node_modules/request/main.js:327:16)
npm ERR! at IncomingMessage.emit (events.js:81:20)
npm ERR! at HTTPParser.onMessageComplete (http.js:133:23)
npm ERR! at CleartextStream.ondata (http.js:1227:22)
npm ERR! at CleartextStream._push (tls.js:303:27)
npm ERR! at SecurePair.cycle (tls.js:574:20)
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Darwin 11.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/steven/Locker
npm ERR! node -v v0.4.9
npm ERR! npm -v 1.0.106
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/steven/Locker/npm-debug.log
npm not ok