Angular Upgrade from 11 to 12 Version Example
Hi,
In this example, you will learn angular 11 to angular 12 upgrade. if you want to see example of update @angular 11 to 12 then you are a right place. In this article, we will implement a upgrade angular cli to 12 in ubuntu. if you want to see example of update angular 11 to 12 then you are a right place. Let's see bellow example how to update angular version 11 to 12.
When i was working on my angular application i need to update my angular 11 version to angular 11. 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 11 to angular 12.
I have two way to upgrade your angular 11 to 12 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 11 to angular 12 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
I'm a full-stack developer, entrepreneur and owner of ItSolutionstuff.com. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Laravel, Angular, Vue, Node, Javascript, JQuery, Codeigniter and Bootstrap from the early stage. I believe in Hardworking and Consistency.
We are Recommending you
- Angular Google Line Chart Example
- Angular Convert HTML to PDF File Example
- Angular Custom Markdown Pipe Example
- How to use Bootstrap 4 Carousel in Angular 11?
- How to use Owl Carousel In Angular 11?
- Angular Bar Chart Example Tutorial
- Angular 11 Pie Chart using ng2-charts Example
- Angular 11/10 Material Autocomplete Example
- Angular Material Datepicker Disable Future Dates Example
- Angular 11 CRUD Application Example
- How to Get Current URL in Angular?