I am trying to install ngx-doc-viewer in angular 9 project. But it throws some error, here I have attached the error. Anyone faced this issues?
or
Suggest me any other document viewer using angular 9
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@"~9.0.7" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^11.2.0" from [email protected]
npm ERR! node_modules/ngx-doc-viewer
npm ERR! ngx-doc-viewer@"*" 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.
You have a dependency conflict (incorrect and potentially broken dependency).
Try to to run the
npm install
command with--force
, or--legacy-peer-deps.
OR:
Workaround is to use the
--force
flag when runningng update
[package] to override the dependency issues.