Open Closed

Dependency issue in freshly created project: ERESOLVE unable to resolve dependency tree #2380


User avatar
0
ihlavsya created
  • ABP Framework version: v5.0.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): Angular, but not Identity Server Separated
  • NodeJS: v16.13.1
  • Exception message and stack trace: user@XX-MacBook-Pro angular % npm i npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: Fourth@0.0.0 npm ERR! Found: @angular/common@12.2.15 npm ERR! node_modules/@angular/common npm ERR! @angular/common@"~12.2.6" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/common@"^13.0.0" from @ng-bootstrap/ng-bootstrap@11.0.0 npm ERR! node_modules/@ng-bootstrap/ng-bootstrap npm ERR! peer @ng-bootstrap/ng-bootstrap@">=10.0.0" from @abp/ng.components@5.0.1 npm ERR! node_modules/@abp/ng.components npm ERR! @abp/ng.components@"~5.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/mariialeos/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /.npm/_logs/2022-01-06T17_23_47_819Z-debug.log user@XX-MacBook-Pro angular % npm start

Fourth@0.0.0 start ng serve --open

sh: ng: command not found user@XX-MacBook-Pro angul

  • Steps to reproduce the issue:"
  1. abp new Fourth -u angular
  2. npm i

1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Have you tried use yarn command?

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11