I had an asp.net core app on Angular 10.2.4, decided to upgrade to 11.
Ran: ng update @angular/core@11 @angular/cli@11
it failed complaining of devkit. Uninstalled devkit, upgraded angular to 11.2.14 OK.
Now am trying to install devkit back.
npm install @angular-devkit/build-angular --save-dev
- fail - seems try to install v12 and depends on cli 12 also.npm install @angular-devkit/[email protected] --save-dev
ornpm install @angular-devkit/build-angular@11 --save-dev
- fail - No matching version found for @angular-devkit/build-angular@xx
What's the right version of devkit for Angular 11? What's the general idea on how to find/infer/guess correct version of a package for a certain Angular version?
ng new
up an app with the relevant CLI version and just have a look. Note to help other people with similar problems find this it would be helpful to include the actual error messages in the question – GreesonNo matching version found for @angular-devkit/build-angular@xx
where xx is whatever you try - eg 11 / 11.2 / 11.0 etc – Monody