Javascript

Upgrade to Angular 6 in under 2 minutes

Cool! The latest and greatest update to Angular (is it?) is in, in the coatings of Angular 6. Some of us love shiny new things and wanna switch our Angular 5 projects to 6. Here’s how you can upgrade to Angular 6 from Angular 5 in 2 minutes.

Set timer…. Go!

Some NPMs

Run npm install -g @angular/cli@latest to update global Angular CLI to 6+

Run npm install @angular/cli@latest to update the project CLI

Updating Angular CLI to 6

Then ng update @angular/cli

Next, ng update @angular/core

If all is well, run

ng update

Then finally, if any audit fixing needed, run

npm audit fix

Done.

Related Articles

Check Also
Close
Back to top button