【发布时间】:2021-08-11 13:19:51
【问题描述】:
有人可以解释一下这是什么意思以及我如何解决它。 这是我尝试全局运行“npm audit fix”命令时遇到的错误
gomer@Gomers-MBP ~ % npm audit fix
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: web-project@0.0.0
npm ERR! Found: @angular/compiler-cli@8.2.14
npm ERR! node_modules/@angular/compiler-cli
npm ERR! dev @angular/compiler-cli@"~8.2.11" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/compiler-cli@"^12.0.0" from @angular-devkit/build-angular@12.0.1
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR! dev @angular-devkit/build-angular@"^12.0.1" 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 /Users/gomer/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/gomer/.npm/_logs/2021-05-22T16_02_12_140Z-debug.log
gomer@Gomers-MBP ~ %
谢谢
【问题讨论】: