How to Update Angular Version 9 to 10?

Now, let's see tutorial of update angular cli version 9 to 10. you will learn how to change angular cli version from 9 to 10. you can see upgrade angular cli version globally. i explained simply about upgrade angular cli to 10 in ubuntu. You just need to some step to done update angular 9 to 10.

When i was working on my angular application i need to update my angular 9 version to angular 10. i wan run command for update angular version but i can not do it that. it say me some configuration affected. so i thought how i can update my angular 9 to angular 10.

I have two way to upgrade your angukar 9 to 10 first we will directly update your angular cli version. if it's not working for you then you can uninstall and reinstall your angular cli with bellow steps.

Let's see both way:

Way 1: Update Angular CLI:

You can directly upgrade your angular cli version globally by using update command of ng. so you can do it by bellow command.

ng update @angular/cli @angular/core

Now you can see ng version by following command:

ng version

Way 2: Update Angular CLI using reinstall:

I will show you list of commands for update version angular 9 to angular 10 by using uninstall and upgrade angular version.

Uninstall Angular CLI:

npm uninstall -g @angular/cli

Clear Cache:

npm cache clean --force

npm cache verify

Install Angular CLI:

npm install -g @angular/cli

Now you have new version of angular cli. so you can check it by following command:

ng version

You will see layout like as bellow:

I hope it can help you...

August 7, 2020 | Category : Angular

Blog Search