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

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

相关推荐
遇到困难睡大觉哈哈8 小时前
Harmony os 静态卡片(ArkTS + FormLink)详细介绍
前端·microsoft·harmonyos·鸿蒙
用户47949283569158 小时前
Bun 卖身 Anthropic!尤雨溪神吐槽:OpenAI 你需要工具链吗?
前端·openai·bun
p***43489 小时前
前端在移动端中的网络请求优化
前端
g***B7389 小时前
前端在移动端中的Ionic
前端
四问四不知9 小时前
Rust语言进阶(结构体)
开发语言·后端·rust
拿破轮9 小时前
使用通义灵码解决复杂正则表达式替换字符串的问题.
java·服务器·前端
whltaoin9 小时前
【 Web认证 】Cookie、Session 与 JWT Token:Web 认证机制的原理、实现与对比
前端·web·jwt·cookie·session·认证机制
Aerelin10 小时前
爬虫playwright入门讲解
前端·javascript·html·playwright
5***o50010 小时前
前端在移动端中的NativeBase
前端
灵魂学者10 小时前
Vue3.x —— 父子通信
前端·javascript·vue.js·github