How to setup npm proxy settings behind HTTP and HTTPS proxy on Windows
In your user home dir create file .npmrc with your username and password:
proxy = http://user:[email protected]:8080
https_proxy = http://user:[email protected]:4443
strict-ssl = falseOpen CMD and run command npm config list then check that proxy settings is enabled.
Find lines like this:
; userconfig C:\your_home_dir\.npmrc
https_proxy = "http://user:[email protected]:4443"
proxy = http://user:[email protected]:8080
strict-ssl = falseIf you found this lines you configured proxy correctly.
For debug enable HTTP logging in .npmrc:
# Enable http logging to console
loglevel = httpAnd run npm install with --verbose option.
If you want use npm with HTTP protocol instead HTTPS you can config it with:
# Enable HTTP instead HTTPS
registry = http://registry.npmjs.org/
but i give password on one page and accept the EULA in the second how to overcome it and url us a very long string,should also include all the things other than the proxy ip and port