Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
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.
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
1 comment thread