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.
407 Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )
I have tried possibly all the solutions I have found online. My .npmrc
file has entries now like this
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
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.
One thing that works is when I use Fiddler as a proxy as described in this article but I want to avoid fiddler adding athentication headers. Any ideas what could possibly be wrong?