I have project in angular 8 with metronic after updating to angular 10 when I try to install npm i
every time getting this error.
npm ERR! While resolving: metronic-angular@6.1.8
npm ERR! Found: @angular/common@10.2.5
npm ERR! ERESOLVE unable to resolve dependency tree.
npm ERR!
npm ERR! While resolving: metronic-angular@6.1.8
npm ERR! Found: @angular/common@10.2.5
npm ERR! node_modules/@angular/common.
npm ERR! @angular/common@"^10.2.5" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^8.0.0 || ^9.0.0-0" from @angular/cdk@8.2.3
npm ERR! node_modules/@angular/cdk
npm ERR! @angular/cdk@"^8.2.3" 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.
here is the screenshot.
any help will be appreciated Thanks.