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
解决方案:文章来源:https://www.toymoban.com/news/detail-820145.html
npm cache clean --force
npm config set strict-ssl false
npm install
CERT_HAS_EXPIRED-CSDN博客文章来源地址https://www.toymoban.com/news/detail-820145.html
到了这里,关于npm i 报一堆版本问题的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!