How to setup Node.js and Npm behind a corporate web proxy

0 votes
27 views
asked Apr 20 by admin (8,115 points)
How to setup Node.js and Npm behind a corporate web proxy

1 Answer

0 votes
answered Apr 22 by anonymous

Open an command prompt or terminal session and run the following commands to configure npm to work with your web proxy. The commands use proxy.company.com as the address and 8080 as the port.

npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
...