title: Get Node.js npm command to work behind corporate proxy
body: <p>I am trying to install bower</p>
  
  <p>npm install -g bower</p>
  
  <p>but am getting an authentication error from our proxy</p>
  
  <p>...
  npm http 407 <a href="http://registry.npmjs.org/bower" rel="noreferrer">http://registry.npmjs.org/bower</a>
  ...
  Error Code: 407 Proxy Authentication Required.
  ...</p>
  
  <p>I am trying to get npm working behind a corprate proxy.  I think our proxy is a little weird because the only way I was able to get maven downloading packages was to add wagon-http-lightweight.jar as a maven extension.  </p>
  
  <p><a href="http://maven.apache.org/wagon/wagon-providers/wagon-http-lightweight/" rel="noreferrer">http://maven.apache.org/wagon/wagon-providers/wagon-http-lightweight/</a></p>
  
  <p>I have tried all the regular things as described here: 
  <a href="https://stackoverflow.com/questions/7559648/is-there-a-way-to-make-npm-install-the-command-to-work-behind-proxy">Is there a way to make npm install (the command) to work behind proxy?</a> </p>
  
  <p>(I don't need to supply authentication details in my maven proxy settings).</p>
  
  <p>npm config set registry <a href="http://registry.npmjs.org/" rel="noreferrer">http://registry.npmjs.org/</a>
  npm config set proxy <a href="http://myusername:mypassword@proxy.us.somecompany:8080" rel="noreferrer">http://myusername:mypassword@proxy.us.somecompany:8080</a>
  npm config set https-proxy <a href="http://myusername:mypassword@proxy.us.somecompany:8080" rel="noreferrer">http://myusername:mypassword@proxy.us.somecompany:8080</a>
  npm config set strict-ssl false</p>
  
  <p>What else can I try?</p>