Reputation: 241
When I try to install Angular using bash terminal ($ npm install -g @angular/cli) I face the following error message. I tried everything but still can't get rid of this error. Please help.
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! network request to http://registry.npmjs.org/remove-trailing-separator failed, reason: read ECONNRESET
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
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'
Upvotes: 1
Views: 266
Reputation: 681
This problem is occurred when there is a fluctuation in the internet... So always try to check Internet when this problem occurs.
Upvotes: -1
Reputation: 92
Check if you have an active internet connection. If you have one, maybe there is a problem with the proxy settings of your npm installation.
Try following code to reset the proxy settings:
npm config get proxy
npm config rm proxy
npm config rm https-proxy
Upvotes: 2