I have installed nodejs and trying to install agular-cli on windows7. Below is the command used to install.
npm install -g angular-cli
When installing angular-cli, its throwing the below error message:
This is most likely not a problem with npm itself and is related to network connectivity.
In most cases you are behind a proxy or have bad network settings.
I tried the below command too, but still facing the same issue.
npm cache clean
npm install -g -f angular-cli
I have gone through many documents and posts to resolve this issue, but unable to resolve. I want to work with IntelliJ and angular2.
I've tried it on multiple machines and get the same error.
--EDITED--
I tried to run the commands as administrator, but still facing the same above mentioned error.I have set the registry using the below command.
>npm set registry https://registry.npmjs.org/
>npm install -g angular-cli
Few things I noticed:
1) Could not able to ping ping 8.8.8.8
- It says Request timed out.
2) Could not able to ping 'ping registry.npmjs.org'
- It says Request timed out.
3) I can connect via https in browser, https://registry.npmjs.org/
Do I need to set proxy settings to solve this issue, if so how to set? Any suggestions would be helpful.