title: npm install -> tunneling socket could not be established
body: <p>This error message has been answered quite a few times on Stack Overflow, but all the solutions didn't work for me.</p>
  
  <p>Whenever I do <code>npm install</code> I get the following message:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>It has worked a lot of times before, but it suddenly stopped working. The only thing that has changed, that I can remember, is that I've installed VMWare Player. But I don't see why that is related.</p>
  
  <p>Sometimes, instead of <code>statusCode=407</code> the message say <code>cause=Parse Error</code>.</p>
  
  <p>I've tried the following:</p>
  
  <ul>
  <li>Setting the proxy with <code>npm config set proxy</code> and <code>npm config set https-proxy</code></li>
  <li>Changing the registry to <a href="http://registry.npmjs.org" rel="nofollow">http://registry.npmjs.org</a></li>
  <li>Setting <code>strict-ssl</code> to false</li>
  <li>Clearing npm's cache with <code>npm cache clean</code></li>
  </ul>
  
  <p>I'm out of options</p>