面临问题npm错误!来自@ng-bootstrap/ng-bootstrap@10.0.0的对等端@Angular /公共@"^12.0.0”

hgtggwj0  于 2022-12-23  发布在  Bootstrap
关注(0)|答案(1)|浏览(164)

我在部署角应用程序时遇到了这个问题,添加了下面的包@ng-bootstrap/ng-bootstrap。因此,请根据需要查找问题的根本原因。

22-Dec-2022 07:03:47    npm ERR! Could not resolve dependency:
22-Dec-2022 07:03:47    **npm ERR! peer @angular/common@"^12.0.0" from @ng-bootstrap/ng-bootstrap@10.0.0**
22-Dec-2022 07:03:47    npm ERR! node_modules/@ng-bootstrap/ng-bootstrap
22-Dec-2022 07:03:47    npm ERR!   @ng-bootstrap/ng-bootstrap@"^10.0.0" from the root project
22-Dec-2022 07:03:47    npm ERR! 
22-Dec-2022 07:03:47    npm ERR! Fix the upstream dependency conflict, or retry
22-Dec-2022 07:03:47    npm ERR! this command with --force, or --legacy-peer-deps
22-Dec-2022 07:03:47    npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
22-Dec-2022 07:03:47    npm ERR! 
22-Dec-2022 07:03:47    npm ERR! See /home/node/.npm/eresolve-report.txt for a full report.
22-Dec-2022 07:03:47    
22-Dec-2022 07:03:47    npm ERR! A complete log of this run can be found in:
22-Dec-2022 07:03:47    npm ERR!     /home/node/.npm/_logs/2022-12-22T12_03_44_868Z-debug-0.log
22-Dec-2022 07:03:47    The command '/bin/sh -c npm install  && npm cache clean --force' returned a non-zero code:

我的Angular 版本是
/_*||__/|| ||/△|'/一个月一个月|"||| | |||/||||(注 )| |||||(注 )|||||||**||//||*|*、|||_||- -||*||_/

Angular CLI: 13.3.4
Node: 16.15.0
Package Manager: npm 8.16.0
OS: win32 x64

Angular: 13.3.5
... animations, cdk, common, compiler, compiler-cli, core, forms
... language-service, localize, material, platform-browser
... platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1303.4
@angular-devkit/build-angular   13.3.4
@angular-devkit/core            13.3.4
@angular-devkit/schematics      13.3.4
@angular/cli                    13.3.4
@angular/http                   7.2.16
@schematics/angular             13.3.4
rxjs                            6.6.7
typescript                      4.6.4
w8f9ii69

w8f9ii691#

请查看此处,因为这可能有助于解决您的问题。看起来是同一个问题:尝试在Angular 中添加另一个依赖项时出现依赖项错误

相关问题