简体   繁体   English

Codelyzer 需要 Angular 9 而不是 Angular 10

[英]Codelyzer requires Angular 9 instead of Angular 10

When I am running the command npm ls -json in my node js project I get the following error:当我在节点 js 项目中运行命令npm ls -json时,出现以下错误:

npm ERR! missing: @angular/core@9.0.0, required by codelyzer@6.0.2
npm ERR! missing: @angular/compiler@9.0.0, required by codelyzer@6.0.2

@angular/core and @angular/compiler are already installed in the dependencies of my project, but with version 10.2.4 @angular/core@angular/compiler已安装在我的项目的依赖项中,但版本为 10.2.4

The error only occures when I am running yarn install to install my packages.该错误仅在我运行yarn install来安装我的软件包时发生。 If I am using npm install everything works fine, but takes a while.如果我使用npm install一切正常,但需要一段时间。

Is there any version of codelyzer that uses Angular 10 instead of Angular 9 or some other package that solves the same problem?是否有任何版本的 codelyzer 使用 Angular 10 而不是 Angular 9 或其他解决相同问题的包?

Environment:环境:

  • OS: Windows操作系统:Windows

  • Package Manager: yarn包经理:纱线

  • Angular version: 10角度版本:10

I found out, that Codelyzer is deprecated and I had to remove it and install "eslint" package instead.我发现 Codelyzer 已被弃用,我不得不将其删除并安装“eslint”包。 EsLint has included all features of codelyzer. EsLint 包含了 codelyzer 的所有功能。

我发现了这个Github对话,基于此我只需要更新 Angular 10 的版本。Codelayzer 版本是 @6.0.0

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM