2014-10-19 104 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),它們更喜歡遊戲的數據包。我無法確定,因爲我沒有爲我的配置找到任何其他驅動程序。