尝试更新Angular应用程序时,我遇到了"npm ERR!code ERESOLVE"错误。
尝试更新Angular应用程序时,我遇到了"npm ERR!code ERESOLVE"错误。
此问题已有答案:
我只是想要更新使用Angular设计的网站应用程序,但是出现了这个错误。我认为自己漏了什么,但是找不到。 code-simples
"C:\Program Files\nodejs\npm.cmd" install npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @agm/core@3.0.0-beta.0 npm ERR! Found: @angular/common@15.0.1 npm ERR! node_modules/@angular/common npm ERR! @angular/common@"15.0.1" from the root project npm ERR! peer @angular/common@"^14.0.0 || ^15.0.0" from @angular/cdk@14.2.1 npm ERR! node_modules/@angular/cdk npm ERR! @angular/cdk@"14.2.1" from the root project npm ERR! peer @angular/cdk@"14.2.1" from @angular/material@14.2.1 npm ERR! node_modules/@angular/material npm ERR! @angular/material@"14.2.1" from the root project npm ERR! 2 more (@angular/material-moment-adapter, mat-table-exporter) npm ERR! 3 more (@swimlane/ngx-charts, mat-table-exporter, cdk-table-exporter) npm ERR! 17 more (@angular/flex-layout, @angular/forms, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/common@"^9.1.0 || ^10.0.0" from @agm/core@3.0.0-beta.0 npm ERR! node_modules/@agm/core npm ERR! @agm/core@"3.0.0-beta.0" from the root project npm ERR! npm ERR! Conflicting peer dependency: @angular/common@10.2.5 npm ERR! node_modules/@angular/common npm ERR! peer @angular/common@"^9.1.0 || ^10.0.0" from @agm/core@3.0.0-beta.0 npm ERR! node_modules/@agm/core npm ERR! @agm/core@"3.0.0-beta.0" 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 C:\Users\ardac\AppData\Local\npm-cache\eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\ardac\AppData\Local\npm-cache\_logs\2022-11-28T12_42_43_429Z-debug-0.log Process finished with exit code 1
我正在逐个尝试遵循Angular文档规则
admin 更改状态以发布 2023年5月20日