#angular #npm
Вопрос:
PS C:UsersHossamDesktopangularconFusiongt; npm install --save @angular/flex-layout npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: con-fusion@0.0.0 npm ERR! Found: @angular/cdk@13.0.1 npm ERR! node_modules/@angular/cdk npm ERR! peer @angular/cdk@"13.0.1" from @angular/material@13.0.1 npm ERR! node_modules/@angular/material npm ERR! @angular/material@"^13.0.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! @angular/flex-layout@"*" from the root project npm ERR! npm ERR! Conflicting peer dependency: @angular/cdk@12.2.13 npm ERR! node_modules/@angular/cdk npm ERR! peer @angular/cdk@"^12.0.0" from @angular/flex-layout@12.0.0-beta.35 npm ERR! node_modules/@angular/flex-layout npm ERR! @angular/flex-layout@"*" 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:UsersHossamAppDataLocalnpm-cacheeresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! C:UsersHossamAppDataLocalnpm-cache_logs2021-11-17T14_06_23_440Z-debug.log PS C:UsersHossamDesktopangularconFusiongt; npm i hammerjs --save^C PS C:UsersHossamDesktopangularconFusiongt; npm install hammerjs --save removed 7 packages, and audited 1236 packages in 11s 80 packages are looking for funding run `npm fund` for details found 0 vulnerabilities PS C:UsersHossamDesktopangularconFusiongt; npm install --save @angular/flex-layout@6.0.0-beta.18 npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: con-fusion@0.0.0 npm ERR! Found: @angular/common@13.0.1 npm ERR! node_modules/@angular/common npm ERR! @angular/common@"~13.0.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/common@"gt;=6.0.0-beta.0 lt;7.0.0" from @angular/cdk@6.4.7 npm ERR! node_modules/@angular/cdk npm ERR! peer @angular/cdk@"^6.0.0" from @angular/flex-layout@6.0.0-beta.18 npm ERR! node_modules/@angular/flex-layout npm ERR! @angular/flex-layout@"6.0.0-beta.18" 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:UsersHossamAppDataLocalnpm-cacheeresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! C:UsersHossamAppDataLocalnpm-cache_logs2021-11-17T14_27_25_983Z-debug.log PS C:UsersHossamDesktopangularconFusiongt;
Комментарии:
1. Пожалуйста, предоставьте достаточно кода, чтобы другие могли лучше понять или воспроизвести проблему.