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.
- Subscribe on YouTube at https://www.youtube.com/JasonWatmore
- Follow me on Twitter at https://twitter.com/jason_watmore
- Follow me on Facebook at https://www.facebook.com/JasonWatmoreBlog
- Follow me on GitHub at https://github.com/cornflourblue
- Feed formats available: RSS, Atom, JSON
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.
- Subscribe on YouTube at https://www.youtube.com/TinaAndJason
- Follow us on Instagram at https://www.instagram.com/tinaandjason
- Follow us on Facebook at https://www.facebook.com/TinaAndJasonVlog
- Visit our website at https://tinaandjason.com.au
Need Some Angular Help?
Search fiverr to find help quickly from experienced Angular developers.