NPM 获取失败 [英] NPM fetch failed
本文介绍了NPM 获取失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是一个快速的:
npm install socket.io
npm http GET https://registry.npmjs.org/socket.io
npm http 304 https://registry.npmjs.org/socket.io
npm http GET https://registry.npmjs.org/-/socket.io-0.9.10.tgz
npm http 404 https://registry.npmjs.org/-/socket.io-0.9.10.tgz
npm ERR! fetch failed https://registry.npmjs.org/-/socket.io-0.9.10.tgz
npm ERR! Error: 404 Not Found
npm ERR! at null.<anonymous> (/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 11.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "socket.io"
npm ERR! cwd /Users/enrico/Documents/MMORPG
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/enrico/Documents/MMORPG/npm-debug.log
npm ERR! not ok code 0
这个 npm 安装有什么问题?服务器无法访问?有什么解决方法吗?
what's wrong with this npm install? is the server unreachable? Any workaround?
提前致谢
推荐答案
https://twitter.com/addy_osmani/status/234565967101972481 <-- 看这个对话.我想今天很多人都遇到了麻烦:/
https://twitter.com/addy_osmani/status/234565967101972481 <-- see this conversation. I think many people are having trouble today :/
解决方案:https://github.com/mmalecki/npm-proxy <-- NPM 代理
solution: https://github.com/mmalecki/npm-proxy <-- NPM proxy
或使用:npm install
这篇关于NPM 获取失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文