title: Unable to download npm packages. 407 Proxy Authentication Required
body: <p>I'm having difficulty to by pass proxy when trying to install npm packages on windows 10 machine in an angular app and getting the following error. </p>
  
  <p><code>407 Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )</code></p>
  
  <p>I have tried possibly all the solutions I have found online. My <code>.npmrc</code> file has entries now like this</p>
  
  <pre><code>registry=https://registry.npmjs.org/
  proxy=http://mydomainusername:password@proxy-domain:port
  http-proxy=http://mydomainusername:password@proxy-domain:port
  https-proxy=http://mydomainusername:password@proxy-domain:port
  strict-ssl=false
  </code></pre>
  
  <p>I have tried various combinations (e.g. used IP addresses instead of domains, specified just the proxy-domain address without username and password) using npm config commands but not having any luck and keep getting the same error.</p>
  
  <p>One thing that works is when I use Fiddler as a proxy as described in this <a href="https://www.sharepointconfig.com/2017/04/using-npm-behind-a-proxy-that-uses-ntlm-authentication/" rel="nofollow noreferrer">article</a> but I want to avoid fiddler adding athentication headers. Any ideas what could possibly be wrong? </p>