certificate has expired
request to https://registry.npm.taobao.org/ failed, reason: certificate has expired
解决方式
1、尝试更换镜像源
// 清空缓存
npm cache clean --force
// 设置镜像
npm config set registry https://registry.npmmirror.com
npm install
执行 npm config get registry
确认镜像源更换成功,再次尝试npm install
。如果还是报错,检查用户目录下.npmrc
、.yarnrc
、.vuerc
这几个配置文件是否还存在旧的镜像地址,如果有一并替换
Window目录:C:\Users\{user}
2、关闭SSL证书检查
npm config set strict-ssl false
npm install