ItSolutionStuff.com

How to Upgrade from Angular 12 to Angular 13 Version Example

By Hardik Savani • October 20, 2023
Angular

Hi Dev,

In this quick example, let's see angular 12 to angular 13 upgrade. i would like to show you update @angular 12 to 13. it's simple example of upgrade angular cli to 13 in ubuntu. We will look at example of update angular 12 to 13. you can also upgrade angular 10 or angular 11 to angular 13 version.

When i was working on my angular application i need to update my angular 12 version to angular 13. 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 12 to angular 13.

I have two way to upgrade your angular 12 to 13 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 12 to angular 13 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...

Hardik Savani

Hardik Savani

I'm a full-stack developer, entrepreneur, and founder of ItSolutionStuff.com. Passionate about PHP, Laravel, JavaScript, and helping developers grow.

📺 Subscribe on YouTube

We Are Recommending You

Set Default Value in Multi Select Angular Material?

Read Now →

Angular 12 Reactive Forms Validation Example

Read Now →

How to Add Bootstrap 5 in Angular 12?

Read Now →

How to Create & Use Component in Angular 12?

Read Now →

Angular Upgrade from 11 to 12 Version Example

Read Now →

Angular Material Table Example| Angular Mat Table Example

Read Now →

Angular Material Dynamic Checkbox List Example

Read Now →

How to Add Carousel in Angular 11 Material?

Read Now →

Angular Material Autocomplete Select Option Event Example

Read Now →

Angular Material Input Autocomplete Off Example

Read Now →