angular: NPM install error in dependency tree

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~

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (1 by maintainers)

Most upvoted comments

I guess only the owner Of repo can do this…