Manual update

It is good to have a general understanding of how a manual upgrade works, because you may not be able to use the version of Angular CLI that has automatic update; you may eject Angular CLI altogether from your project or the tool may contain a bug. The version numbers discussed here are examples copied from the update guide.

For the sake of this example, I will be demonstrating a potential upgrade from Angular 4 to Angular 5:

  1. Follow Before updating instructions from the guide and this chapter
  2. Ensure that Node and npm are up to date

  1. In order to upgrade to version 5.0.0, execute the following command:
$ npm install @angular/animations@'^5.0.0' @angular/common@'^5.0.0' @angular/compiler@'^5.0.0' @angular/compiler-cli@'^5.0.0' ...

Get Angular 6 for Enterprise-Ready Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.