Published: November 09 2022

Angular CLI - Install or Update the latest version of Angular CLI

This is a super quick post to show how to install or update the latest version of Angular CLI globally on your machine.

Install or update Angular CLI with the same npm command:

npm install -g @angular/cli


Here's the output from the command when I updated my Angular CLI to the latest version (14.2.8):

> npm i -g @angular/cli
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs

changed 209 packages, and audited 211 packages in 30s

found 0 vulnerabilities


Check the Angular CLI version after installing/updating

To test that the above command worked correctly and you now have the latest version of Angular CLI installed, run the following command:

ng version


The output from the command showing the CLI version should look something like this:

> ng version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 14.2.8
Node: 16.13.2
Package Manager: npm 8.19.2
OS: win32 x64

Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1402.8 (cli-only)
@angular-devkit/core         14.2.8 (cli-only)
@angular-devkit/schematics   14.2.8 (cli-only)
@schematics/angular          14.2.8 (cli-only)

 


Need Some Angular Help?

Search fiverr for freelance Angular developers.


Follow me for updates

On Twitter or RSS.


When I'm not coding...

Me and Tina are on a motorcycle adventure around Australia.
Come along for the ride!


Comments


Supported by