I'm behind a corporate proxy. How do I configure npm to work with it?

Question

Grade: Education Subject: Support
I'm behind a corporate proxy. How do I configure npm to work with it?
Asked by:
69 Viewed 69 Answers

Answer (69)

Best Answer
(303)
You need to configure npm to use your proxy. Use the following commands, replacing `your_proxy_url` with your actual proxy URL: `npm config set proxy http://your_proxy_url` and `npm config set https-proxy http://your_proxy_url`. You might also need to configure authentication if your proxy requires it.