npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree

执行了npm install之后发生了报错

npm ERR! code ERESOLVE

npm ERR! ERESOLVE unable to resolve dependency tree

npm ERR!

npm ERR! While resolving: music-manage@1.0.0

npm ERR! Found: webpack@3.12.0

npm ERR! node_modules/webpack

npm ERR! dev webpack@"^3.6.0" from the root project

npm ERR!

npm ERR! Could not resolve dependency:

npm ERR! peer webpack@"^5.0.0" from sass-loader@13.3.2

npm ERR! node_modules/sass-loader

npm ERR! dev sass-loader@"^13.3.2" 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 D:\software\node16.18\node_cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:

npm ERR! D:\software\node16.18\node_cache\_logs\2023-09-13T06_58_54_019Z-debug-0.log

不能解析依赖树 ,需要先修复上面依赖关系冲突或者重新执行一下npm install命令

注意:需要删除node_modules和package-lock.json

根据它的建议,我们去执行npm install --force 或者 npm install --legacy-peer-deps,一般就可以重新启动,如果不行的话就使用

npm install --legacy-peer-deps

我自己的亲测有效,但是你可能恰好不能解决。。。。那就找教程吧

相关推荐
键盘不能没有CV键3 小时前
【图片处理】✈️HTML转图片字体异常处理
前端·javascript·html
yantuguiguziPGJ3 小时前
WPF 联合 Web 开发调试流程梳理(基于 Microsoft.Web.WebView2)
前端·microsoft·wpf
大飞记Python4 小时前
部门管理|“编辑部门”功能实现(Django5零基础Web平台)
前端·数据库·python·django
tsumikistep5 小时前
【前端】前端运行环境的结构
前端
你的人类朋友5 小时前
【Node】认识multer库
前端·javascript·后端
Aitter5 小时前
PDF和Word文件转换为Markdown的技术实现
前端·ai编程
mapbar_front6 小时前
面试问题—上家公司的离职原因
前端·面试
昔人'6 小时前
css使用 :where() 来简化大型 CSS 选择器列表
前端·css
昔人'6 小时前
css `dorp-shadow`
前端·css
流***陌6 小时前
扭蛋机 Roll 福利房小程序前端功能设计:融合趣味互动与福利适配
前端·小程序