npm ERR! request to https://registry.npm.taobao.org/vue-router failed, reason: certificate has expired

npm install 报错了!看提示是证书到期,究其原因是淘宝镜像的地址换了。

旧:https://registry.npm.taobao.org/

新:https://registry.npmmirror.com/

# 清除缓存
npm cache clean --force

# 验证缓存是否清除干净
npm verify cache

# 更改淘宝镜像
npm config set registry https://registry.npmmirror.com/

# 查看本地配置的镜像地址
npm config get registry
posted @ 2024-02-27 09:40  小喵要发力  阅读(951)  评论(1)    收藏  举报