npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to http://repo.psbc.com/repository/npm-group/axios failed, reason: getaddrinfo ENOTFOUND repo.psbc.com
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 config get proxy
npm config get https-proxy
如果返回值都为null,继续执行:
npm config set proxy null
npm config set https-proxy null
这篇博客主要介绍了在执行npm命令时遇到的网络错误`ENOTFOUND`,问题表现为无法访问指定仓库。解决方案包括检查npm的代理设置,通过运行`npm config get proxy`和`npm config get https-proxy`命令来查看当前配置,如果返回值为null,则使用`npm config set proxy null`和`npm config set https-proxy null`清除代理设置。

被折叠的 条评论
为什么被折叠?



