无法在angular 9中安装ngx文档查看器

无法在angular 9中安装ngx文档查看器,angular,npm,angular9,ngx-doc-viewer,Angular,Npm,Angular9,Ngx Doc Viewer,我正在尝试在angular 9项目中安装ngx文档查看器。但是它抛出了一些错误,这里我附加了错误。有人面临这个问题吗? 或 建议我使用angular 9查看任何其他文档 npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: app@0.0.147 npm ERR! Found: @angular/common@9.0.7 npm

我正在尝试在angular 9项目中安装ngx文档查看器。但是它抛出了一些错误,这里我附加了错误。有人面临这个问题吗?

建议我使用angular 9查看任何其他文档

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: app@0.0.147
npm ERR! Found: @angular/common@9.0.7
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 ngx-doc-viewer@2.0.2
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.

您存在依赖关系冲突(不正确的潜在的已断开的依赖关系)

尝试使用
--force
--legacy peer deps运行
npm install
命令。

或:

解决方法是在运行
ng update
[package]时使用
--force
标志来覆盖依赖性问题

ng update ngx-doc-viewer --next --force

感谢您的回复,但是一旦将我的nodejs版本从版本15.0.1降级到版本12.11.1,它现在就可以工作了