NPM安装崩溃

时间:2014-10-19 15:01:47

标签: javascript node.js npm

当我尝试安装一些npm软件包(npm install)时,我最新的npm不断崩溃。在安装所有依赖项之前,我必须重复此过程例如5次,即便如此,它有时会遗漏一些嵌套的依赖项。所以我必须通过树再次运行npm install。

我试着用这个,但没有运气。我不是代理人。哪里应该有问题?安装花了这么长时间,我的网络连接速度不慢。

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

1 个答案:

答案 0 :(得分:0)

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