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

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

相关推荐
wearegogog12318 分钟前
基于 MATLAB 的卡尔曼滤波器实现,用于消除噪声并估算信号
前端·算法·matlab
Drawing stars24 分钟前
JAVA后端 前端 大模型应用 学习路线
java·前端·学习
品克缤29 分钟前
Element UI MessageBox 增加第三个按钮(DOM Hack 方案)
前端·javascript·vue.js
小二·38 分钟前
Python Web 开发进阶实战:性能压测与调优 —— Locust + Prometheus + Grafana 构建高并发可观测系统
前端·python·prometheus
小沐°44 分钟前
vue-设置不同环境的打包和运行
前端·javascript·vue.js
qq_419854051 小时前
CSS动效
前端·javascript·css
烛阴1 小时前
3D字体TextGeometry
前端·webgl·three.js
桜吹雪2 小时前
markstream-vue实战踩坑笔记
前端
C_心欲无痕2 小时前
nginx - 实现域名跳转的几种方式
运维·前端·nginx
花哥码天下2 小时前
恢复网站console.log的脚本
前端·javascript·vue.js