我想安装一个 npm 包,它向我显示此错误:
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'
我尝试完全卸载 npm 和 node.js,然后重新安装它,但它仍然不起作用。
任何帮助表示赞赏。
运行以下命令:
npm config set registry https://registry.npmjs.org/
Idk 您如何设法更改默认注册表,但这是您撤消它的方法:)