近期vue安装失败,具体如下:
1.先npm cache clean --force
再下载 插件后缀加上 --legacy-peer-deps
2.certificate has expired
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://registry.npm.taobao.org/yorkie/download/yorkie-2.0.0.tgz failed, reason: certificate has expired
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\24963\AppData\Local\npm-cache\_logs\2024-01-22T07_39_43_091Z-debug-0.log
解决方案:
npm cache clean --force
npm config set strict-ssl false
npm install
然后安装成功,如下: