Skip to content

I am facing a problem when write command npm install  #5930

@sayedbd021

Description

@sayedbd021

issue 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: [email protected]
npm ERR! Found: @angular/[email protected]
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/[email protected]
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:
... 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
@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions