[英]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
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.