4

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

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

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

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
Camillo
  • 153
  • 1
  • 9

2 Answers2

11

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.

Camillo
  • 153
  • 1
  • 9
2

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

Gabor
  • 352
  • 5
  • 14