1异常信息
60 error code ERESOLVE 61 error ERESOLVE unable to resolve dependency tree 62 error 63 error While resolving: gg@0.0.0 63 error Found: @angular/compiler@11.0.9 63 error node_modules/@angular/compiler 63 error @angular/compiler@"~11.0.4" from the root project 63 error 63 error Could not resolve dependency: 63 error peer @angular/compiler@"11.2.14" from @angular/compiler-cli@11.2.14 63 error node_modules/@angular/compiler-cli 63 error peer @angular/compiler-cli@"^11.0.0" from @angular-devkit/build-angular@0.1100.7 63 error node_modules/@angular-devkit/build-angular 63 error 63 error Fix the upstream dependency conflict, or retry 63 error this command with --force, or --legacy-peer-deps 63 error to accept an incorrect (and potentially broken) dependency resolution. 63 error 63 error See D:\nodejs\node_cache\eresolve-report.txt for a full report. 64 verbose exit 1
解决:
设置可以安装旧包:npm config set legacy-peer-deps true
Linux:sudo npm config set legacy-peer-deps true