NPM

Set Corporate Proxy on NPM

A corgi smiling happily

Please use the following code to set the proxy

1npm config set proxy http://username:pass@server.com:port
2npm 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:

1npm config set proxy http://abhi:hipass@abheist.com:8080
2npm 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 🙏

Subscribe to my newsletter

Get email from me about my ideas, full-stack development resources, tricks and tips as well as exclusive previews of upcoming articles.

No spam. Just the highest quality ideas you’ll find on the web.