2014-01-21 243 views
0

当我尝试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

这种错误可能是由多种原因造成的:

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