Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sayedbd021 opened this issue Apr 7, 2022 · 12 comments · Fixed by #5937 or #5938
Closed

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

sayedbd021 opened this issue Apr 7, 2022 · 12 comments · Fixed by #5937 or #5938

Comments

@sayedbd021
Copy link

sayedbd021 commented Apr 7, 2022

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: 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:
... 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.

@sam0324sam
Copy link

I have same error with win10

@Prefix1802
Copy link

Prefix1802 commented Apr 12, 2022

#5921

I am going to do a fresh win10 install(VMWare) with new node latest LTS. I will let you know if i have the same problems.

Also, update your node to the latest LTS please?

https://nodejs.org/en/

Let us know what happens.

And does npm start work?

@MattRvt
Copy link

MattRvt commented Apr 20, 2022

Why are you using different versions than the one provided in the package.json ?
Try with the #5900 package.json

@hjelliott
Copy link

I have the same error with:
Mac OS 12.3.1
Node: V16.15.0
NPM: V8.5.5
GIT: 2.23

howard@MacBook-M1-Pro 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/animations@12.2.16
npm ERR! node_modules/@angular/animations
npm ERR! @angular/animations@"^12.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/animations@"~9.1.1" from @swimlane/ngx-charts@14.0.0
npm ERR! node_modules/@swimlane/ngx-charts
npm ERR! @swimlane/ngx-charts@"^14.0.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 /Users/howard/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/howard/.npm/_logs/2022-05-02T07_17_53_283Z-debug-0.log

Any ideas on how to resolve?

@Prefix1802
Copy link

@azaiko-akveo
Copy link

azaiko-akveo commented May 5, 2022

Try to downgrade npm to version 6
npm i -g npm@6

@tavo20
Copy link

tavo20 commented May 8, 2022

Try with node 16.14.2

@Prefix1802
Copy link

Not solved yet. Merge is generating issues.

@vaibhavkumar-sf
Copy link

Not working with Node-16
image

@vaibhavkumar-sf
Copy link

Fixed by this solution : #5893

image

@sayedbs
Copy link

sayedbs commented May 24, 2022

this issue fix when I back npm version 6
issue fix done

@sayedbd021
Copy link
Author

sayedbs

yes going to close this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants