I am facing a problem when write command ```npm install```
See original GitHub issueissue showing
D:\Outsourching\local\2022\ngx-admin>npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: ngx-admin@8.0.0
npm ERR! Found: @angular/cdk@12.1.0
npm ERR! node_modules/@angular/cdk
npm ERR! @angular/cdk@"12.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/cdk@"12.2.13" from @angular/material@12.2.13
npm ERR! node_modules/@angular/material
npm ERR! @angular/material@"^12.1.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\***\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\***\AppData\Local\npm-cache\_logs\2022-04-07T05_19_02_693Z-debug-0.log
my Angular version
_ _ ____ _ ___ / \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _| / △ \ | '_ \ / _
| | | | |/ ` | '__| | | | | | |
/ ___ | | | | (| | || | | (| | | | || | | |
// __| ||_, |_,||_,|| _|||
|___/
Angular CLI: 13.3.2 Node: 14.15.1 Package Manager: npm 8.6.0 OS: win32 x64
Angular: <error> … animations, cdk, common, compiler, compiler-cli, core, forms … google-maps, language-service, material, platform-browser … platform-browser-dynamic, router
Package Version
@angular-devkit/architect 0.1303.2 (cli-only) @angular-devkit/build-angular <error> @angular-devkit/core 13.3.2 (cli-only) @angular-devkit/schematics 13.3.2 (cli-only) @angular/cli 13.3.2 (cli-only) @schematics/angular 13.3.2 (cli-only) rxjs 6.6.7 (cli-only) typescript 4.6.3 (cli-only)`
and others
node version: v14.15.1 npm version: 8.6.0
how can I solve it any idea, note: am already applied
- cache clean --f
- lock file deleted
- npm-cache folder delete
- node_modules delete
Then I re-install it but not working.
Issue Analytics
- State:
- Created a year ago
- Comments:12
Top GitHub Comments
Try to downgrade npm to version 6
npm i -g npm@6
this issue fix when I back npm version 6 issue fix done