【已解决】npm ERR! request to https://registry.npm.taobao.org failed, reason: certificate has expired

使用vue开发项目时,安装插件一直安装不上,排查了之后才发现是:证书已过期

报错信息:npm ERR: request to https://registry.npm.taobao.org failed,
reason: certificate has expired

翻译成中文就是:

请求 https://registry.npm.taobao.org 失败,原因:证书已过期

直接使用:(npm config set registry https://registry.npmmirror.com) 就好了

你可能感兴趣的:(Vue,npm,前端,node.js)