Codelyzer requires Angular 9 instead of Angular 10

6.5k Views Asked by At

When I am running the command npm ls -json in my node js project I get the following error:

npm ERR! missing: @angular/[email protected], required by [email protected]
npm ERR! missing: @angular/[email protected], required by [email protected]

@angular/core and @angular/compiler are already installed in the dependencies of my project, but with version 10.2.4

The error only occures when I am running yarn install to install my packages. If I am using npm install everything works fine, but takes a while.

Is there any version of codelyzer that uses Angular 10 instead of Angular 9 or some other package that solves the same problem?

Environment:

  • OS: Windows

  • Package Manager: yarn

  • Angular version: 10

2

There are 2 best solutions below

0
On BEST ANSWER

I found out, that Codelyzer is deprecated and I had to remove it and install "eslint" package instead. EsLint has included all features of codelyzer.

0
On

I found this Github conversastion and based on that I just had to update the version for Angular 10. The Codelayzer version was @6.0.0