获取npm安装错误

时间:2014-01-21 12:39:06

标签: node.js npm

当我尝试npm安装时,我遇到以下错误。请告诉我这个问题可能存在的问题和解决办法。

npm ERR! network tunneling socket could not be established, cause=connect ECONNR
EFUSED
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settin
gs.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "d:\\Program Files\\nodejs\\node.exe" "d:\\Program Files\\nodej
s\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd d:\Asgard_Odin\odin\asgard-framework
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code ECONNRESET
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     d:\Asgard_Odin\odin\asgard-framework\npm-debug.log
npm ERR! not ok code 0

1 个答案:

答案 0 :(得分:0)

此错误可能由多种原因引起:

  • npm服务器有一些麻烦。尝试使用mirrow,例如:npmjs.eu
  • 你在防火墙后面?尝试set up a proxy获取npm。