首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在角项目错误中安装Transloco

在角项目错误中安装Transloco
EN

Stack Overflow用户
提问于 2022-06-08 18:35:28
回答 1查看 112关注 0票数 0

我试图在我的角度项目中添加Transloco,我得到了下面的错误,我的角度项目是12.1.5,您知道我如何修复它吗?

我试着先安装Transloco它会产生相同的错误,然后我尝试了ng add @ngneat/transloco它会产生同样的错误

代码语言:javascript
复制
 code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: angular-crumbs@3.0.1
npm ERR! Found: @angular/common@12.1.5
npm ERR! node_modules/@angular/common
npm ERR!   peer @angular/common@"^12.0.0 || ^13.0.0-0" from @angular/cdk@12.2.9
npm ERR!   node_modules/@angular/cdk
npm ERR!     peer @angular/cdk@"12.2.9" from @angular/material@12.2.9
npm ERR!     node_modules/@angular/material
npm ERR!       peer @angular/material@">=10.2.7" from mat-table-exporter@10.2.4
npm ERR!       node_modules/mat-table-exporter
npm ERR!         mat-table-exporter@"^10.2.3" from the root project
npm ERR!       1 more (the root project)
npm ERR!     peer @angular/cdk@">=10.2.7" from cdk-table-exporter@10.2.4
npm ERR!     node_modules/cdk-table-exporter
npm ERR!       cdk-table-exporter@"^10.2.4" from mat-table-exporter@10.2.4
npm ERR!       node_modules/mat-table-exporter
npm ERR!         mat-table-exporter@"^10.2.3" from the root project
npm ERR!     2 more (mat-table-exporter, the root project)
npm ERR!   peer @angular/common@"12.1.5" from @angular/forms@12.1.5
npm ERR!   node_modules/@angular/forms
npm ERR!     peer @angular/forms@"^12.0.0 || ^13.0.0-0" from @angular/material@12.2.9
npm ERR!     node_modules/@angular/material
npm ERR!       peer @angular/material@">=10.2.7" from mat-table-exporter@10.2.4
npm ERR!       node_modules/mat-table-exporter
npm ERR!         mat-table-exporter@"^10.2.3" from the root project
npm ERR!       1 more (the root project)
npm ERR!     peer @angular/forms@"^10.0.0 || ^11.0.0 || ^12.0.0" from ngx-quill@14.3.0
npm ERR!     node_modules/ngx-quill
npm ERR!       ngx-quill@"^14.3.0" from the root project
npm ERR!     1 more (the root project)
npm ERR!   10 more (@angular/material, @angular/platform-browser, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@">=2.0.0 <7.0.0" from angular-crumbs@3.0.1
npm ERR! node_modules/angular-crumbs
npm ERR!   angular-crumbs@"^3.0.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @angular/common@6.1.10
npm ERR! node_modules/@angular/common
npm ERR!   peer @angular/common@">=2.0.0 <7.0.0" from angular-crumbs@3.0.1
npm ERR!   node_modules/angular-crumbs
npm ERR!     angular-crumbs@"^3.0.1" 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.
EN

回答 1

Stack Overflow用户

发布于 2022-06-08 19:08:49

首先运行以下逗号来安装依赖项:npm

然后运行ng add @ngneat/transloco

阅读这里的deteals:https://www.npmjs.com/package/@ngneat/transloco

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72550647

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档