标签

Honeymoon - Thomas Ng

归档

近期文章

npm报错request to https://registry.npm.taobao.org/core-js failed, reason: getaddrinfo ENOTFOUND server

npm报错request to https://registry.npm.taobao.org/core-js failed, reason: getaddrinfo ENOTFOUND server

最近拉取vue新代码更新依赖时,更新总是报错getaddrinfo ENOTFOUND server,

npm报错request to https://registry.npm.taobao.org/core-js failed, reason: getaddrinfo ENOTFOUND server插图

经过度娘查询得知,原来是自己的镜像出问题了,网上的解决办法很多,但试了有效的办法记录一下:

打开cmd,按照顺序输入执行命令:

1、先执行这两个命令

npm config set proxy null 回车

npm config set https-proxy null 回车

2、再执行: npm config set registry http://registry.cnpmjs.org/ 回车

3、最后执行:npm install -g cnpm –registry=https://registry.npm.taobao.org 回车

一般都能解决。

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

原文链接:https://blog.csdn.net/llupengt/article/details/121602897

Buy me a cup of coffee 🙂

觉得对你有帮助,就给我打赏吧,谢谢!

微信赞赏码链接,点击跳转:

npm报错request to https://registry.npm.taobao.org/core-js failed, reason: getaddrinfo ENOTFOUND server插图1
Tags: