Issue
I am attempting to install ngx-datatables in a project running Angular 12 npm install @swimlane/ngx-datatable After install I get the following Errors:
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@"~12.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^11.0.2" from @swimlane/[email protected]
npm ERR! node_modules/@swimlane/ngx-datatable
npm ERR! @swimlane/ngx-datatable@"^19.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.
I don't understand what needs to be done here.
Solution
Master branch not updated to Angular 12 yet. You can try to install with --force
flag::
npm i @swimlane/ngx-datatable --save --force
Answered By - Danil Prokhorenko
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.