提问者:小点点

安装包时的Npm“EnotFound Error”


我想安装一个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,然后重新安装,它仍然不能工作。

感谢任何帮助。


共1个答案

匿名用户

运行此命令:

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

Idk您是如何设法更改默认注册表的,但下面是如何撤消它的:)

相关问题