npm not working - "read ECONNRESET"
Remove your proxy settings at home and switch on at Office networks, This may be irritating, But It worked for me:
npm config set proxy http://xxx.xxx.xxx.4:8080
npm config set https-proxy http://xxx.xxx.xxx.4:8080
and
npm config rm proxy
npm config rm https-proxy
You may also need to specify the proxy server/port, in some environments the system settings for proxy are not enough for npm to work.
npm config set proxy "http://your-proxy.com:80"
You may want to check your NPM proxy settings and perhaps remove it.
npm config get proxy
npm config rm proxy
npm config rm https-proxy
One might expect a fresh install of NodeJS+NPM would not have a proxy configured. Strangely enough, mine did come with a proxy defined, pointing to an IP and port 3128. Removing the proxy did the trick.
use
npm config set registry http://registry.npmjs.org/
so that npm requests for http
url instead of https
.
and then try the same npm install
command