gpt4 book ai didi

angular - ngx-datatable ERESOLVE 无法解析依赖树

转载 作者:行者123 更新时间:2023-12-04 17:17:14 27 4
gpt4 key购买 nike

我正在尝试在运行 Angular 12 的项目中安装 ngx-datatables
npm install @swimlane/ngx-datatable
安装后,我收到以下错误:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: Optylab-project@0.0.1
npm ERR! Found: @angular/common@12.0.5
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/ngx-datatable@19.0.0
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.
我不明白这里需要做什么。

最佳答案

主分支 not updated to Angular 12然而。您可以尝试使用 --force 安装旗帜::

npm i @swimlane/ngx-datatable --save --force

关于angular - ngx-datatable ERESOLVE 无法解析依赖树,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68407255/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com