linuxdeploy icon indicating copy to clipboard operation
linuxdeploy copied to clipboard

getaddrinfo ENOTFOUND registry.npmjs.org

Open dukobpa3 opened this issue 3 years ago • 0 comments

Hi all!

Have issue with DNS in some reason.

I've installed everything I needed and it is wokrs, but in some reason last time I can't do anything more due to this issue.

$ sudo npm install -g npm-gui
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/npm-gui failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org
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'

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-06-02T14_21_42_942Z-debug-0.log

Can't install anything, update, etc. Cant even ping google.com (but can do it with IP)

How can I fix it? And maybe someone knows how I broke it?

dukobpa3 avatar Jun 02 '22 14:06 dukobpa3