1.前端npm install时报错:
PS D:\project\myProject\other\spring-boot-vue-master\spring-boot-vue-master\exam> npm install
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @babel/[email protected]
npm ERR! node_modules/@babel/core
npm ERR! dev @babel/core@"^7.2.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @babel/core@">=7.0.0-beta.50 <7.0.0-rc.0" from @babel/[email protected]
npm ERR! node_modules/@babel/preset-es2015
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See D:\Application\node\node_cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! D:\Application\node\node_cache\_logs\2024-05-15T01_31_06_816Z-debug-0.log
npm版本高无法解析依赖树导致依赖下载失败无法下载项目依赖,
可执行命令:npm install --legacy-peer-deps,绕过dependency里依赖的进行自动安装,最终问题解决,项目成功运行。
2.
标签:npm,node,ERR,记录,--,babel,前端,问题,dependency From: https://www.cnblogs.com/sensenh/p/18193214