HTTP error 404 installing any module on Mac OS X #2706

Closed
cbegg50 opened this Issue Aug 12, 2012 · 1 comment

Comments

Projects
None yet
3 participants

cbegg50 commented Aug 12, 2012

Trying to install any module on my MacOS X with node.js installed from the Mac OS X installer on the nodejs.org downloads page gives me the following error:

Colins-Mac-mini-2:JS colin$ npm install jquery
npm http GET https://registry.npmjs.org/jquery
npm http 200 https://registry.npmjs.org/jquery
npm http GET https://registry.npmjs.org/-/jquery-1.7.3.tgz
npm http 404 https://registry.npmjs.org/-/jquery-1.7.3.tgz
npm ERR! fetch failed https://registry.npmjs.org/-/jquery-1.7.3.tgz
npm ERR! Error: 404 Not Found
npm ERR! at null. (/usr/local/lib/node_modules/npm/lib/utils/fetch.js:47:16)
npm ERR! at EventEmitter.emit (events.js:115:20)
npm ERR! at WriteStream.flush (fs.js:1514:12)
npm ERR! at fs.close (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:92:5)
npm ERR! at Object.oncomplete (fs.js:297: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 Darwin 12.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "jquery"
npm ERR! cwd /Users/colin/JS
npm ERR! node -v v0.8.6
npm ERR! npm -v 1.1.48
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/colin/JS/npm-debug.log
npm ERR! not ok code 0
Colins-Mac-mini-2:JS colin$ npm install flatiron
npm http GET https://registry.npmjs.org/flatiron
npm http 200 https://registry.npmjs.org/flatiron
npm http GET https://registry.npmjs.org/-/flatiron-0.2.7.tgz
npm http 404 https://registry.npmjs.org/-/flatiron-0.2.7.tgz
npm ERR! fetch failed https://registry.npmjs.org/-/flatiron-0.2.7.tgz
npm ERR! Error: 404 Not Found
npm ERR! at null. (/usr/local/lib/node_modules/npm/lib/utils/fetch.js:47:16)
npm ERR! at EventEmitter.emit (events.js:115:20)
npm ERR! at WriteStream.flush (fs.js:1514:12)
npm ERR! at fs.close (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:92:5)
npm ERR! at Object.oncomplete (fs.js:297: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 Darwin 12.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "flatiron"
npm ERR! cwd /Users/colin/JS
npm ERR! node -v v0.8.6
npm ERR! npm -v 1.1.48
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/colin/JS/npm-debug.log
npm ERR! not ok code 0
Colins-Mac-mini-2:JS colin$

Regards,
Colin Begg

Same for me. It's related to the issue: #2694

You can temporary fix it using a proxy registry, as pointed out here

ex. npm install -d --registry http://165.225.128.50:8000

isaacs closed this Aug 19, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment