2014-10-19 105 views
0

当我尝试安装一些npm软件包(npm install)时,我最新的npm不断崩溃。在安装所有依赖关系之前,我不得不重复这个过程5次,甚至有时会错过一些嵌套的依赖关系。所以我必须通过树并再次运行npm install。NPM安装崩溃

我试图用这个,但没有运气。我不在代理之后。问题应该在哪里?安装需要很长时间,而且我的网络连接速度并不慢。

npm config set registry http://registry.npmjs.org/ 


c:\work\projects\java\project\frontend-src\node_modules\gulp\node_modules\orchestrator>npm install 
npm ERR! fetch failed http://registry.npmjs.org/event-stream/-/event-stream-3.1.7.tgz 
npm ERR! fetch failed http://registry.npmjs.org/rcloader/-/rcloader-0.1.2.tgz 
npm ERR! fetch failed http://registry.npmjs.org/debug/-/debug-2.1.0.tgz 
npm ERR! fetch failed http://registry.npmjs.org/rcloader/-/rcloader-0.1.2.tgz 
npm ERR! fetch failed http://registry.npmjs.org/debug/-/debug-2.1.0.tgz 
npm ERR! fetch failed http://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz 
npm ERR! fetch failed http://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz 
npm ERR! fetch failed http://registry.npmjs.org/from/-/from-0.1.3.tgz 
npm ERR! fetch failed http://registry.npmjs.org/rcloader/-/rcloader-0.1.2.tgz 
npm ERR! network read ECONNRESET 
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 settings. 
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 "C:\\Apps\\nodejs\\\\node.exe" "C:\\Apps\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" 
npm ERR! cwd c:\work\projects\java\project\frontend-src\node_modules\gulp\node_modules\orchestrator 
npm ERR! node -v v0.10.32 
npm ERR! npm -v 1.4.28 
npm ERR! syscall read 
npm ERR! code ECONNRESET 
npm ERR! errno ECONNRESET 
npm ERR! not ok code 0 
+0

您是否有类似包丢失或类似问题的连接问题? – staaar 2014-10-19 15:04:16

+0

不,我通过光纤有非常稳固的连接,这不是硬件问题。 – Zdend 2014-10-19 15:07:07

回答

0

我不知道这是怎么可能的,但这些问题在我切换到我的笔记本电脑上的WIFI后消失了。我有微星GT70有杀手e2200 Atheros千兆以太网。导致这个问题的原因很可能是管理网络流量的驱动程序/软件(Qualcomm bigfoot),它们更喜欢游戏的数据包。我无法确定,因为我没有为我的配置找到任何其他驱动程序。