Using npm behind a proxy server

If you have trouble using npm behind a proxy server, remember to set the npm proxy and https-proxy variables.
For example:

# sudo npm config set proxy http://10.0.2.2:3128
# sudo npm config set https-proxy http://10.0.2.2:3128

Leave a Reply