ngx-treeview
ngx-treeview copied to clipboard
unable to resolve dependency tree
npm install ngx-treeview
Throws:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"^11.2.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^10.0.0" from [email protected]
npm ERR! node_modules/ngx-treeview
npm ERR! ngx-treeview@"*" 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/kev/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/kev/.npm/_logs/2021-03-11T14_23_10_908Z-debug.log
Installing it with --force
wouldn't yield any downsides though, but i don't recommend it.
You also can downgrade to angular 10.x.x to resolve that issue.
Great It worked