Gible
Gible

Reputation: 166

Npm "ENOTFOUND error" while installing a package

I would like to install a npm package and it shows me this error:

npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.your-registry.npme.io/npmrc failed, reason: getaddrinfo ENOTFOUND registry.your-registry.npme.io
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 tried to uninstall fully npm and node.js, and reinstall it and it still does not work.

Any Help Appreciated.

Upvotes: 0

Views: 5213

Answers (1)

YanouHD
YanouHD

Reputation: 1121

Run this command :

npm config set registry https://registry.npmjs.org/

Idk how you managed to change the default registry, but here's how you undo it :)

Upvotes: 1

Related Questions