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
本文来自博客园,作者:小喵要发力,转载请注明原文链接:https://www.cnblogs.com/miaowa/p/18036207

浙公网安备 33010602011771号