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
解決方案:文章來源:http://www.zghlxwxcb.cn/news/detail-820145.html
npm cache clean --force
npm config set strict-ssl false
npm install
CERT_HAS_EXPIRED-CSDN博客文章來源地址http://www.zghlxwxcb.cn/news/detail-820145.html
到了這里,關于npm i 報一堆版本問題的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!