Set Corporate Proxy on NPM
Configure your NPM to work seamlessly behind a corporate proxy with practical setup guide.

Published At
9/23/2020
Reading Time
~ 1 min read
Please use the following code to set the proxy
npm config set proxy http://username:pass@server.com:port
npm config set https-proxy http://username:pass@server.com:port
npm config set proxy http://username:pass@server.com:port
npm config set https-proxy http://username:pass@server.com:port
Please replace username
, password
, proxyserver.com
, port
with your details, it will look something like this:
npm config set proxy http://abhi:hipass@abheist.com:8080
npm config set https-proxy http://abhi:hipass@abheist.com:8080
npm config set proxy http://abhi:hipass@abheist.com:8080
npm config set https-proxy http://abhi:hipass@abheist.com:8080
🙏
Do you have any questions, or simply wish to contact me privately? Don't hesitate to shoot me a DM on Twitter.
Have a wonderful day.
Abhishek 🙏