我想安装一个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'
我尝试卸载fully npm和node.js,然后重新安装它仍然无法正常工作。
任何帮助。
答案 0 :(得分:1)
运行此命令:
npm config set registry https://registry.npmjs.org/
Idk您是如何设法更改默认注册表的,但是这是您撤消它的方法:)