2014-09-26 61 views
1

此錯誤消息在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 proxynpm config set https-proxy
  • 更改註冊表設置代理http://registry.npmjs.org
  • 設置strict-ssl
  • 結算NPM的緩存與npm cache clean

我' m超出選項

回答

0

找到我自己的解決方案。

我前幾天改變了我的域密碼,我需要如果你是使用代理,你必須更新cntlm ini文件

3

npm config set proxy https://username:[email protected]:port 

npm config set https-proxy https://username:[email protected]:port 

如果你不使用的用戶和密碼,只需在命令行中避免「用戶名:密碼@」。

相關問題