![](/img/trans.png)
[英]Why “ npm install ” command warns “npm WARN deprecated tslint@6.1.3:” while installing Angular project?
[英]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
tslint 的对等依赖项存在冲突,您可能需要共享您的 package.json 以获取更多信息
或者你也可以使用“npm i --legacy-peer-deps”但它可能会破坏一些依赖
或者你可以使用 eslint -
tslint 和 codelyzer 已从 angular 11 开始弃用,您应该在 angular 15 中使用 eslint 有关 tslint、codelyzer 和 eslint 的更多信息,您可以参考 -
迁移指南 - https://github.com/angular-eslint/angular-eslint#migrating-from-codelyzer-and-tslint
打字稿-eslint - https://github.com/typescript-eslint/typescript-eslint
角度 eslint - https://github.com/angular-eslint/angular-eslint
tslint-to-eslint-config - https://github.com/typescript-eslint/tslint-to-eslint-config
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.