Reputation: 301
I have downgraded angular cli version and when I run the command ng serve
, the following message is displayed
ERROR : This version of CLI is only compatible with Angular versions 0.0.0 || ^8.0.0-beta || >=8.0.0 <9.0.0 but Angular version 9.0.7 was found instead
.
I looked at https://update.angular.io to find instructions on how to update Angular, but I do not want to update the angular CLI version, I want to downgrade the angular version from 9.0.7 to 8.0.0. How can I do that?
Upvotes: 1
Views: 6753
Reputation: 724
First of all check your installed angular version through this command
ng --version
If you are already on desired version then you just have to update @angular/cli
version in your project package.json
file to make it compatible .
Sometimes when we are using project developed on other machine causes this sort of issue
If ng --version
shows that you are not on desired version then follow these steps to downgrade
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/[email protected] // In your case 8.0.0
For complete guide check ReadMe part of this github repository.
Same problem here
Upvotes: 1