![](/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.