我正在尝试在我的角度项目中安装引导程序,但出现以下错误

问题描述 投票:0回答:0

C:\AngularCourse\AngularBasics>npm 安装引导程序

新增2个包,删除1个包,8秒审核904个包

93包正在寻找资金 运行

npm fund
了解详情

2 个高危漏洞

要解决所有问题,请运行: npm 审计修复

运行

npm audit
了解详情。

我也试过命令 ng add @ng-bootstrap/ng-bootstrap 它也不起作用并显示这样的错误

npm 错误!代码 ERESOLVE 错误! ERESOLVE 无法解析 错误! 错误!解析时:[email protected] 错误!发现:@angular/[email protected] 错误! node_modules/@angular/核心 错误!来自@angular/[email protected] 的同行@angular/core@"15.2.2" 错误! node_modules/@angular/动画 错误!来自@angular/[email protected] 的 peerOptional @angular/animations@"15.2.2" 错误! node_modules/@angular/平台浏览器 错误!来自@angular/[email protected] 的同行@angular/platform-browser@"15.2.2" 错误! node_modules/@angular/表单 错误!来自根项目的@angular/forms@"^15.2.0" 错误!另外 3 个(@angular/platform-browser-dynamic,@angular/router,根项目) 错误!来自根项目的@angular/animations@"^15.2.0" 错误!来自@angular/[email protected] 的同行@angular/core@"15.2.2" 错误! node_modules/@angular/common 错误!来自@angular/[email protected] 的同行@angular/common@"15.2.2" 错误! node_modules/@angular/表单 错误!来自根项目的@angular/forms@"^15.2.0" 错误!来自@angular/[email protected] 的同行@angular/common@"15.2.2" 错误! node_modules/@angular/平台浏览器 错误!来自@angular/[email protected] 的同行@angular/platform-browser@"15.2.2" 错误! node_modules/@angular/表单 错误!来自根项目的@angular/forms@"^15.2.0" 错误!另外 3 个(@angular/platform-browser-dynamic,@angular/router,根项目) 错误!另外 3 个(@angular/platform-browser-dynamic,@angular/router,根项目) 错误!还有 6 个(@angular/compiler,@angular/forms,...) 错误! 错误!无法解决依赖关系: 错误!来自根项目的 @ng-bootstrap/ng-bootstrap@"14.0.1" 错误! 错误!冲突的对等依赖:@angular/[email protected] 错误! node_modules/@angular/核心 错误!来自@angular/[email protected] 的同行@angular/core@"15.2.3" 错误! node_modules/@angular/表单 错误!来自根项目的@angular/forms@"^15.2.0" 错误!来自@ng-bootstrap/[email protected] 的同行@angular/forms@"^15.0.0" 错误!节点模块/@ng-bootstrap/ng-bootstrap 错误!来自根项目的 @ng-bootstrap/ng-bootstrap@"14.0.1" 错误! 错误!修复上游依赖冲突,或者重试 错误!此命令与 --force 或 --legacy-peer-deps 错误!接受不正确的(并且可能损坏的)依赖项解决方案。

angular-bootstrap
© www.soinside.com 2019 - 2024. All rights reserved.