How to upgrade/update Angular to latest version [2021] ?

I have developed saveji.com using angular tech stacks and I keep upgrading when the new stable version is released.

Update:

Below are the list of few commands (exactly 3 commans) which does the job very neatly.

npm i -g npm-check-updates
ncu -u
npm install

Sample Screenshot:

Recommended: (same way for each package you need)

ng update @angular/cli

Same way you need to do for all the packages you have in your project dependencies (package.json file)

How I upgrade (quickly?)

Since I am the only one developer who developed the complete saveji.com website, I always use the below command to do the same.

ng update --all --allow-dirty --force

This way it updates all the packages mentioned in the package.json then I will resolve if I face any issues one by one, but this is something good approach, because we upgrade everything to the latest stable and supported versions.

Things to Note:

— all is deprecated, so we need to find other way around, but as of now this works.

Consultancy services:

We provide consultancy services for website developements for Angular and Spring Boot Java Tech stacks. Reach us to help you with the best architecture design and development services.

Angular SEO is something we have very well done earlier.

We are available at mirthbees@gmail.com

Leave a Reply