NPM安装崩溃



当我尝试安装一些npm包(npm-install)时,我最新的npm不断崩溃。例如,在安装所有依赖项之前,我必须重复这个过程5次,即使这样,它有时也会错过一些嵌套的依赖项。所以我必须遍历树并再次运行npm安装。

我试着用这个,但没有成功。我不支持代理人。哪里应该有问题?安装花了很长时间,而且我的互联网连接速度也不慢。

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

c:workprojectsjavaprojectfrontend-srcnode_modulesgulpnode_modulesorchestrator>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:workprojectsjavaprojectfrontend-srcnode_modulesgulpnode_modulesorchestrator
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

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

最新更新