Installing angular-cli on Windows Behind Proxy Server
To load npm modules behind a proxy server you need to type in following commands in the node.js terminal:
- npm config set proxy http://proxy.company.com:8080
- npm config set https-proxy http://proxy.company.com:8080
Download and install Nodejs https://nodejs.org/en/download/
Check your proxy setting. Based on your organization it will be change. If proxy not define you need to define your proxy setting in to LAN setting.
Run CMD as Administrator enter the command
npm config set https-proxy http://10.10.20.60:80
- If you are going to install in to a remote PC or you need windows Active Directory credential for installation.
run angular cli command:
npm i –g angular-cli
I was able install angular-cli behind the corporate proxy, Need to follow the below steps:
- Install node/npm
Configure proxy for Nodejs like below :
Run the below commands
npm config set proxy {your proxy server address}
npm config set {your proxy server address}
3.Install "gitbash", as gitbash will help us download the packages from gitHub
- Cofigure 'gitbash' proxy run the below command:
git config --global http.proxy http://proxyuser:[email protected]:8080
Then hit the final command:
npm install -g angular-cli@latest