Problem
When I try to install npm package...
Command:
npm install -g angular-cli@webpack
I get this error message:
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\chtti\npm-debug.log
How-to
The problem results from you don't configure proxy properly. Therefore, you need to set your corporate web proxy before you install npm package.
The command is as bellows:
npm config set proxy [your proxy]
Reference
[1] https://jjasonclark.com/how-to-setup-node-behind-web-proxy
No comments:
Post a Comment