此错误消息在Stack Overflow上已经被回答了很多次,但所有的解决方案都不适用于我。npm install - >无法建立隧道套接字
每当我做npm install
我得到以下信息:
npm ERR! network tunneling socket could not be established, statusCode=407
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:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Repos\[repo-name]
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ECONNRESET
它之前已经做了很多次,但它突然停止工作。我记得唯一改变的是我已经安装了VMWare Player。但我不明白为什么这是相关的。
有时,而不是statusCode=407
消息说cause=Parse Error
。
我已经试过如下:
- 与
npm config set proxy
和npm config set https-proxy
- 更改注册表设置代理http://registry.npmjs.org
- 设置
strict-ssl
假 - 结算NPM的缓存与
npm cache clean
我' m超出选项