After I upgrade my nodejs to the latest version, I always get an error when trying to run npm install to install packages:
npm WARN registry Using stale data from http://registry.npmjs.org/ because the host is inaccessible -- are you offline? npm WARN registry Using stale package data from http://registry.npmjs.org/ due to a request error during revalidation. npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND npm ERR! network request to http://registry.npmjs.org/escope failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:80 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'
I have no problems connecting to the Internet, and I will disable the route to https: https://registry.npmjs.org and replace it with http - the first installation worked and immediately after launch did not work again.
node version 8.2.1
npm version 5.3.0
Thanks for any help.
Adidi source share