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.

NPM install error in dependency tree

See original GitHub issue

I am getting error

chok@cloudshell:~/apps/my-app (fx-vps-225216)$ npm install --save angular-formio
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: my-app@0.0.0
npm ERR! Found: @angular/common@11.2.4
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"~11.2.4" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0" from angular-formio@4.11.4
npm ERR! node_modules/angular-formio
npm ERR!   angular-formio@"*" 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 /home/weilies_chok/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/weilies_chok/.npm/_logs/2021-03-08T04_01_26_030Z-debug.log
weilies_chok@cloudshell:~/apps/my-app (fx-vps-225216)$

Then i tried add --legacy-peer-deps, it fixed the issue. But after that, the audit fix get bunch of error again…

eilies_chok@cloudshell:~/apps/my-app (fx-vps-225216)$ npm audit fix npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: my-app@0.0.0 npm ERR! Found: @angular/common@11.2.4 npm ERR! node_modules/@angular/common npm ERR! @angular/common@“~11.2.4” from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/common@“^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0” from angular-formio@4.11.4 npm ERR! node_modules/angular-formio npm ERR! angular-formio@“^4.11.4” 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 /home/weilies_chok/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /home/weilies_chok/.npm/_logs/2021-03-08T04_04_53_665Z-debug.log weilies_chok@cloudshell:~/apps/my-app (fx-vps-225216)$

Anyone have luck to make it work? Appreciated for any helps~

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
mukeshmjncommented, Apr 23, 2021

I guess only the owner Of repo can do this…

0reactions
weiliescommented, Sep 21, 2021

hi all, is this fixed? i am still getting this TODAY… 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to resolve dependency tree error when installing npm ...
You have dependency conflict (incorrect and potentially broken dependency) as it says, so try to run the command with --force , or --legacy-peer ......
Read more >
Unable to resolve dependency tree error in Angular while ...
To fix Unable to resolve dependency tree error in Angular while installing `npm` packages follow the below steps. 1. Run `npm install --save ......
Read more >
ERESOLVE unable to resolve dependency tree when npm ...
Remove node_modules folder and package-lock. · Run npm install –force instead of npm install command · if you got the same error, try...
Read more >
"Unable to resolve dependency tree" error during NPM install ...
Delete node_module folder and the package-lock.json file. · Run npm cache verify to verify and clean up your npm. · Run npm install...
Read more >
eresolve unable to resolve dependency tree - You.com
npm install - ERESOLVE unable to resolve dependency tree ... The solution is to downgrade the node version to 12. Here is a...
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