npm install – >隧道套接字无法build立

这个错误信息在堆栈溢出已经被回答了好几次,但是所有的解决scheme都不适合我。

每当我做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
  • 将registry更改为http://registry.npmjs.org
  • strict-ssl设置为false
  • npm cache clean

我没有select

如果您身在代理之后,您必须:

 npm config set proxy https://username:password@proxy:port npm config set https-proxy https://username:password@proxy:port 

如果你不使用用户名和密码,只需要在命令行中避免使用“ username:password @ ”。

find我自己的解决scheme

我前几天更改了我的域密码,我需要更新cntlm ini文件