question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I am facing a problem when write command ```npm install```

See original GitHub issue

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: <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:closed
  • Created a year ago
  • Comments:12

github_iconTop GitHub Comments

4reactions
azaiko-akveocommented, May 5, 2022

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

1reaction
sayedbscommented, May 24, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common errors | npm Docs
Some strange issues can be resolved by simply running npm cache clean and trying again. If you are having trouble with npm install...
Read more >
npm install error from the terminal - Stack Overflow
This is all because you are not in the desired directory. You need to first get into the desired directory. Mine was angular-phonecat...
Read more >
NPM install error - Material Design for Bootstrap
Trying to install MDB pro 4.19.2 just downloaded and ran npm install but getting this error of sha512 not matching. Can someone tell...
Read more >
Fixing npm permission issue - Kaustubh Talathi - Medium
This can be resolved by appending sudo command but it is not recommended as it might create other issues. If the user does...
Read more >
NodeJS - npm install errors on Windows - YouTube
Once opened, type " npm install --global windows-build-tools ... on Windows you may have encountered issues installing dependencies.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found