在工作中有遇见获取淘宝的npm镜像存在问题,图示如下的报错:

根据报错的内容是说 https://registry.npm.taobao.org地址访问失败了,然后通过排查发现淘宝的npm镜像仓库地址有更新了。需要使用最新的地址
旧的淘宝镜像仓库:https://registry.npm.taobao.org
需要替换为最新的淘宝镜像仓库:https://registry.npmmirror.com
详情请查看仓库变更公告
操作配置如下:
1、查看镜像仓库npm config get registry
2、设置镜像仓库npm config set registry https://registry.npmmirror.com
文章讲述了在工作中遇到淘宝npm镜像访问失败的问题,原因是仓库地址已更新。解决方法是将旧地址`https://registry.npm.taobao.org`替换为新的`https://registry.npmmirror.com`,并通过`npmconfigsetregistry`进行配置。
13万+

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



