安装插件报错,原因是我的npm镜像源是淘宝的
request to https://registrynpm.taobao.org/@vue-office%2fpdf failed, reason: certificate has expired
后面用 npm install vue-office --registry=https://registry.npmmirror.com 这个命令安装成功,但是每次都在后面加很麻烦
解决:
先执行命令看看镜像源是不是淘宝的
npm config get registry
发现确实是淘宝的,然后更改镜像源
npm config set registry https://registry.npmjs.org/
成功!!