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:
- Follow Before updating instructions from the guide and this chapter
- Ensure that Node and npm are up to date
- 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' ...