Set up Angular CLI 14
Step 1 — Setting up Angular CLI 14
In this step, we'll install the latest Angular CLI 14 version (at the time of writing this tutorial).
Note: These instructions are also valid for Angular 8/9.
Angular CLI is the official tool for initializing and working with Angular projects. To install it, open a new command-line interface and run the following command:
$ npm install -g @angular/cli
At the time of writing this tutorial, angular/cli v14 will be installed on your system.
If you run the ng version
command, you should get a similar output:
Angular CLI: 14.0.0
Node: 14.17.0
Package Manager: npm 6.14.14
OS: linux x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.1400.0 (cli-only)
@angular-devkit/core 14.0.0 (cli-only)
@angular-devkit/schematics 14.0.0 (cli-only)
@schematics/angular 14.0.0 (cli-only)
In the next step, we'll learn how to intialize a new example project from the command-line.