I am trying to install the @angular/cli using npm, but getting error as below. I a in client place where i use the vpn connect.
Asked
Active
Viewed 524 times
-1
3gwebtrain
- 14,640
- 25
- 121
- 247
-
1Why down vote..? what is wrong here – 3gwebtrain Apr 24 '18 at 02:01
-
I guess you are behind a proxy you need to configure it see [this](https://www.c-sharpcorner.com/article/how-to-use-npm-install-the-command-behind-corporate-proxy-server/) – Vikas Apr 24 '18 at 03:28
1 Answers
0
According your log. I think this issue is similar with (npm ERR! Error: connect ECONNREFUSED). And You should config your NPM proxy properly.
I think below command may help you.
npm config set registry http://registry.npmjs.org/ // Set your registry to npm instead of local
npm config set http-proxy http://username:password@ip:port // Config your http_proxy
npm config set https-proxy http://username:password@ip:port // Config your https_proxy
Emon
- 1,401
- 14
- 24
