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

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

相关推荐
前端不太难18 小时前
从 Navigation State 反推架构腐化
前端·架构·react
前端程序猿之路19 小时前
Next.js 入门指南 - 从 Vue 角度的理解
前端·vue.js·语言模型·ai编程·入门·next.js·deepseek
大布布将军19 小时前
⚡️ 深入数据之海:SQL 基础与 ORM 的应用
前端·数据库·经验分享·sql·程序人生·面试·改行学it
川贝枇杷膏cbppg19 小时前
Redis 的 RDB 持久化
前端·redis·bootstrap
JIngJaneIL19 小时前
基于java+ vue农产投入线上管理系统(源码+数据库+文档)
java·开发语言·前端·数据库·vue.js·spring boot
唐装鼠19 小时前
rust自动调用Deref(deepseek)
开发语言·算法·rust
天外天-亮20 小时前
v-if、v-show、display: none、visibility: hidden区别
前端·javascript·html
jump_jump20 小时前
手写一个 Askama 模板压缩工具
前端·性能优化·rust
be or not to be20 小时前
HTML入门系列:从图片到表单,再到音视频的完整实践
前端·html·音视频
90后的晨仔20 小时前
在macOS上无缝整合:为Claude Code配置魔搭社区免费API完全指南
前端