npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: ruoyi@3.8.5
npm ERR! Found: html-webpack-plugin@5.5.3
npm ERR! node_modules/html-webpack-plugin
npm ERR! html-webpack-plugin@"^5.5.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer html-webpack-plugin@"^3.0.0 || ^4.0.0" from script-ext-html-webpack-plugin@2.1.5
npm ERR! node_modules/script-ext-html-webpack-plugin
npm ERR! dev script-ext-html-webpack-plugin@"2.1.5" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\Administrator\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Local\npm-cache\_logs\2023-07-14T06_34_50_845Z-debug-0.log
2、问题分析
npm版本过高
3、问题解决
npm install npm@6.14.10 -g
然后重新安装即可文章来源:https://www.toymoban.com/news/detail-564024.html
前端面试题库 (面试必备) 推荐:★★★★★
地址:前端面试题库文章来源地址https://www.toymoban.com/news/detail-564024.html
到了这里,关于记一次 vue npm 安装依赖报错解决的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!