Enable NPM behind corporate proxy

Running “npm install” on an enterprise workstation can often trigger an avalanche of errors.   Running the below commands helps point NPM at the corporate proxy server to resolve the issue. 

Cheers!    shades_smile

 

 

Commands

npm config set strict-ssl false
npm config set registry "http://registry.npmjs.org"
npm config set proxy=http://proxy.company.com:8080
npm config set https-proxy=http://proxy.company.com:8080

 

Screenshot

image

 

Reference

Return to Top ▲Return to Top ▲