I have upgraded my Angular CLI globally but my project is using an older version of angular CLI, so I want to downgrade my Angular CLI globally.
We will use the following command to uninstall Angular CLI like this: npm uninstall -g @angular/cli.
Steps To update Angular CLI version globally in your system. First uninstall the existing Angular cli packages. Then run npm cache verify command to clear the node packages cache. Then install latest Angular CLI version using npm install -g @angular/cli@latest command.
You can downgrade your global angular-cli
installation to eg. 1.0.0-beta.14
by issuing:
npm uninstall -g angular-cli npm cache clean npm install -g [email protected]
The complete upgrade/downgrade guide is on GitHub README.
Just for folks seeing this in the future, nowadays angular cli is named @angular/cli on npm, so the new commands to downgrade are these:
npm uninstall -g @angular/cli npm install -g @angular/[email protected] // or whatever version you need
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With