简体   繁体   English

解析时:codelyzer@0.0.28 npm ERR:已找到。 tslint@6.1.3 npm 错误。 node_modules/tslint npm 错误! 来自根项目的可选 tslint@"6.1.3"

[英]While resolving: codelyzer@0.0.28 npm ERR! Found: tslint@6.1.3 npm ERR! node_modules/tslint npm ERR! optional tslint@"6.1.3" from the root project

I was trying to add angular elements in angular 15.0.4 project and found the following error我在angular 15.0.4项目中尝试添加angular元素,发现如下错误

在此处输入图像描述

Any help would be greatly appreciated!任何帮助将不胜感激!

There are conflicting peer dependencies of tslint, you might have to share your package.json for more info tslint 的对等依赖项存在冲突,您可能需要共享您的 package.json 以获取更多信息

Alternatively you can also use "npm i --legacy-peer-deps" but it might broke some dependency或者你也可以使用“npm i --legacy-peer-deps”但它可能会破坏一些依赖

Alternatively you can use eslint -或者你可以使用 eslint -

tslint and codelyzer has been deprecated from angular 11, You should use eslint in angular 15 For more info about tslint, codelyzer and eslint you can refer - tslint 和 codelyzer 已从 angular 11 开始弃用,您应该在 angular 15 中使用 eslint 有关 tslint、codelyzer 和 eslint 的更多信息,您可以参考 -

Migration guide - https://github.com/angular-eslint/angular-eslint#migrating-from-codelyzer-and-tslint迁移指南 - https://github.com/angular-eslint/angular-eslint#migrating-from-codelyzer-and-tslint

typescript-eslint - https://github.com/typescript-eslint/typescript-eslint打字稿-eslint - https://github.com/typescript-eslint/typescript-eslint

angular-eslint - https://github.com/angular-eslint/angular-eslint角度 eslint - https://github.com/angular-eslint/angular-eslint

tslint-to-eslint-config - https://github.com/typescript-eslint/tslint-to-eslint-config tslint-to-eslint-config - https://github.com/typescript-eslint/tslint-to-eslint-config

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么“ npm install ”命令在安装 Angular 项目时会警告“npm WARN deprecated tslint@6.1.3:”? - Why “ npm install ” command warns “npm WARN deprecated tslint@6.1.3:” while installing Angular project? 无法解决依赖关系:来自 codelyzer@5.2.2 的 peer tslint@"^5.0.0 || ^6.0.0" node_modules/codelyzer dev codelyzer@"^5.1.2" 来自根项目 - Could not resolve dependency: peer tslint@"^5.0.0 || ^6.0.0" from codelyzer@5.2.2 node_modules/codelyzer dev codelyzer@"^5.1.2" from the root project tslint 错误 - 阴影名称:'err' - tslint Error - Shadowed name: 'err' tslint不排除angular项目中的node_modules - tslint not excluding node_modules in angular project 由于“ npm ERR!”,Angular项目创建失败。 路径Angular \\ appTwo \\ node_modules \\ acorn \\ bin \\ acorn” - Angular project creation failed due to “npm ERR! path Angular\appTwo\node_modules\acorn\bin\acorn” npm 错误! 代码 ERESOLVE npm 错误! ERESOLVE 无法解析 npm ERR! 解决时:@nestjs/mongoose@8.0.1 - npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! While resolving: @nestjs/mongoose@8.0.1 npm 错误! 在 npm 安装 - npm ERR! on npm install 安装离子时 npm ERR - npm ERR while installing ionic npm ERR:解析时。 metronic-angular@6.1.8 - npm ERR! While resolving: metronic-angular@6.1.8 你怎么能抑制来自npm链接包的tslint警告? - How can you suppress tslint warnings from npm linked packages?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM