I am trying to install angular-cli via npm. I have the recent version of Nodejs and git installed. I am not behind any proxy server(verified it through netsh winhttp s
Setp-1: open windows command prompt then type following command to get the IP address of your proxy server
ping your-proxy-name
For example:
ping myproxy.xyz.com
Step-2: open Node.js command prompt and type following command
npm config set http-proxy http://your-proxy-ip-retrieved-in-step-1:port
npm config set https-proxy http://your-proxy-ip-retrieved-in-step-1:port
For example:
npm config set http-proxy http://192.168.192.95:8080
npm config set https-proxy http://192.168.192.95:8080
Setp-3: on Node.js command prompt type following command to install angular
npm install -g @angular/cli
Hope it will work for you.