此錯誤消息在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超出選項