How to upgrade to latest Angular CLI

To check which version of Angular CLI is installed on your machine, run the command ng –version as shown in the image below:


As you see that on my development machine, Angular cli version 1.0.0 is installed. At the time of writing of this post, latest version of Angular CLI was 1.1.3.

To upgrade to updated version of the Angular CLI, you need to run couple of npm commands. To upgrade it globally on your development machine , first run npm uninstall command as shown below :



This command will remove all the installed Angular modules from the system. Since we are upgrading the package globally, next execute npm cache clean command as shown below:


You need to run this command as administrator. Next to install latest version of Angular CLI run command npm install –g @angular/cli@latest as shown in the image below:


Once latest version of Angular is successfully installed, run the ng –version command to verify whether latest version is installed or not .


You can see that now Angular CLI version 1.1.3 is installed in my development machine. Sometimes you may have to upgrade Angular CLI in the project folder only. I hope you find this small post useful.

Published by

Dhananjay Kumar

Dhananjay Kumar is Developer Evangelist for Infragistics. He is a 8 times Microsoft MVP and well respected Developer Advocate in India.He is the author of 900+ Blog Posts, and can often be found speaking around India at conferences and hosting free workshops for programmers across the country. So far, he has hosted 60 free workshops on various topics like JavaScript, Angular, WCF, ASP.NET MVC, C#, Azure etc. Follow him on twitter @debug_mode for all the updates about his blog posts and workshops. You can send him email at debugmode [at] outlook [dot] com

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s