title: set npm proxy without using http:// before the proxy server name
body: <p>I have npm installed and have used it a few times but unfortunately I had to change my proxy and I am not able to get it to work again. </p>
  
  <p>here are my past settings:(the ones that worked)</p>
  
  <p>npm config get proxy: <code>http://proxy-foo.foobar.com:8080</code></p>
  
  <p>npm config get https-proxy: <code>http://proxy-foo.foobar.com:8080</code></p>
  
  <p>now my proxy is a server name and when I use the proxy in my browser it works fine, but when I set the config in npm it fails with 'getaddrinfo ENOTFOUND'</p>
  
  <p>current settings:</p>
  
  <p>npm config get proxy: <code>http://servername:8080</code></p>
  
  <p>npm config get https-proxy: <code>http://servername:8080</code></p>
  
  <p>in my browsers proxy I do not use http:// before the server name and I think this is what is causing it to fail. could this be the problem and if so is there a way to set proxy configs in npm without using http:// before.</p>