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

今天在安装vue项目的依赖时,使用npm命令报错了,说是原来设置的源镜像网站的证书过期了。

request to https://registry.npm.taobao.org/vue-loader failed, reason: certificate has expired_第1张图片

 

解决方案:

将网址修改为https://registry.npmmirror.com/

npm config set registry https://registry.npmmirror.com/

如图,修改之后npm命令正常执行~

request to https://registry.npm.taobao.org/vue-loader failed, reason: certificate has expired_第2张图片

 

你可能感兴趣的:(npm)