Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I want to downgrade Angular CLI globally as my project is using older version of it

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.

like image 714
Salman Tanzil Avatar asked Oct 03 '16 07:10

Salman Tanzil


People also ask

How do I uninstall angular CLI globally?

We will use the following command to uninstall Angular CLI like this: npm uninstall -g @angular/cli.

How do I change my local angular to global?

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.


2 Answers

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.

like image 89
Yuri Avatar answered Sep 20 '22 15:09

Yuri


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 
like image 20
MyrionSC2 Avatar answered Sep 19 '22 15:09

MyrionSC2