Issue while updating the angular version in your project:
Package "@angular-eslint/schematics" has an incompatible peer dependency to "@angular/cli"
The solution is to run the ng update command first:
ng updateThat will give you the packages which you want to update first:
Found 78 dependencies.
We analyzed your package.json, there are some packages to update:
Name Version Command to update
----------------------------------------------------------------------------------------
@angular-eslint/schematics 14.1.2 -> 15.1.0 ng update @angular-eslint/schematics
@angular/cli 14.2.9 -> 15.0.3 ng update @angular/cli
@angular/core 14.2.10 -> 15.0.3 ng update @angular/core
Run the angular eslint schematics command coming there, i.e
ng update @angular-eslint/schematicsThat will fix the issue and the ng update commands will work after that.