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

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

相关推荐
IT_陈寒7 分钟前
JavaScript 性能优化实战:我从 V8 源码中学到的 7 个关键技巧
前端·人工智能·后端
jenchoi41325 分钟前
软件供应链npm/pypi投毒预警情报【2025-11-09】
前端·安全·web安全·网络安全·npm·node.js
艾小码27 分钟前
别再只会用默认插槽了!Vue插槽这些高级用法让你的组件更强大
前端·javascript·vue.js
JaguarJack29 分钟前
CSS 也要支持 if 了 !!!CSS if() 函数来了!
前端·css
恋猫de小郭32 分钟前
Flutter 3.38 发布,快来看看有什么更新吧
android·前端·flutter
百锦再6 小时前
第11章 泛型、trait与生命周期
android·网络·人工智能·python·golang·rust·go
芳草萋萋鹦鹉洲哦6 小时前
【Windows】tauri+rust运行打包工具链安装
开发语言·windows·rust
wuk9986 小时前
实现ROS系统的Websocket传输,向Web应用推送sensor_msgs::Image数据
前端·websocket·网络协议
合作小小程序员小小店8 小时前
web网页开发,在线%考试管理%系统,基于Idea,vscode,html,css,vue,java,maven,springboot,mysql
java·前端·系统架构·vue·intellij-idea·springboot
s9123601019 小时前
【Rust】m2 mac 编译linux 、aarch、win 程序
rust