经验分享 · 2024年2月26日

Solved: npm ERR! request to xxxxx failed, reason: certificate has expired

1,先npm cache clean –force

再下载 插件后缀加上 –legacy-peer-deps

2,

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

解决方案: