Published:

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)

 


Subscribe or Follow Me For Updates

Subscribe to my YouTube channel or follow me on Twitter, Facebook or GitHub to be notified when I post new content.

Other than coding...

I'm currently attempting to travel around Australia by motorcycle with my wife Tina on a pair of Royal Enfield Himalayans. You can follow our adventures on YouTube, Instagram and Facebook.


Need Some Angular Help?

Search fiverr to find help quickly from experienced Angular developers.



Supported by