Notifications
Sign Up Sign In
Q&A

How to upgrade a recent (>= 8) Angular CLI?

+1
−0

Angular CLI official page indicated how to install the CLI, but provides no information about how to upgrade it. I am interested in how to upgrade the CLI.

Why should this post be closed?

1 comment

For complete information you can visit the Stack Overflow question, but this was asked a very long time ago and some information from there is obsolete. ‭Alexei‭ about 1 month ago

1 answer

+2
−0

I have recently upgraded Angular CLI from version 9 to version 10 and I simply installed it again.

npm install -g @angular/cli

Existing version

λ ng version

Angular CLI: 9.1.8
Node: 12.18.0
OS: win32 x64

Angular:
...
Ivy Workspace:

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.901.8
@angular-devkit/core         9.1.8
@angular-devkit/schematics   9.1.8
@schematics/angular          9.1.8
@schematics/update           0.901.8
rxjs                         6.5.4

After upgrade

Angular CLI: 10.0.7
Node: 12.18.0
OS: win32 x64

Angular:
...
Ivy Workspace:

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1000.7
@angular-devkit/core         10.0.7
@angular-devkit/schematics   10.0.7
@schematics/angular          10.0.7
@schematics/update           0.1000.7
rxjs                         6.5.5

Note: npm upgrade seems to only upgrade to the latest minor version (within already existing major one):

Angular CLI: 9.1.12
Node: 12.18.0
OS: win32 x64

Angular:
...
Ivy Workspace:

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.901.12
@angular-devkit/core         9.1.12
@angular-devkit/schematics   9.1.12
@schematics/angular          9.1.12
@schematics/update           0.901.12
rxjs                         6.5.4

0 comments

Sign up to answer this question »