Npm throw an error after update to nodejs 8

If it's helps to anyone: The only solution that works for me is to ping registry to find the IP. and the fact I have got the IP means I am not blocked

ping registry.npmjs.org

64 bytes from registry.npmjs.org (151.101.60.162): icmp_seq=1 ttl=52 time=87.3 ms

Set the IP to this host on my hosts file (Im in centos /etc/hosts/):

151.101.60.162 registry.npmjs.org

I am almost sure it's some glitch in NPM


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.