Home AngularJs How to Upgrade from Angular 14 to Angular 15 ?

How to Upgrade from Angular 14 to Angular 15 ?

by Shahriar Sagor

Hello Dev’s today now, let’s see a tutorial of angular 14 to angular 15 upgrade. Here in this article i will give you a very simple example of angular upgrade version 15. Now I would like to show you how to update @angular 14 to 15. we can understand a concept of upgrade angular cli to 15 in ubuntu.

Sometimes we need to update our angular one version to angular another version. Here we want to run a command to update the angular version but sometimes we can not do it. it says to us some configuration is affected.

We have two ways to upgrade your angular 14 to 15 first i will directly update my angular CLI version. If it’s not working for me then i will uninstall and reinstall my angular CLI with the bellow steps.

Let’s see both ways:

Way 1: Update Angular CLI:

we can directly upgrade our angular CLI version globally by using the update command of ng. so we can do it by usning the bellow command.

ng update @angular/cli @angular/core

Now we can see the ng version by using the following command:

ng version


Way 2: Update Angular CLI using reinstall:

We will show our list of commands for update version angular 14 to angular 15 by using the 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 We have a new version of angular cli. so we can check it by using the following command:

ng version

Read Also: How To Create Login And Registration Using Ajax ?

Thanks for read. I hope it help you. For more you can follow us on facebook

close

You may also like