Secret ingredients to quality software

SSW Foursquare

Tools - Do you know what Angular Tools to install for an Angular project?

Last updated by Tiago Araújo [SSW] on 25 Jun 2021 01:26 am (about 1 year ago) See History

This rule explains what to install in order to get started creating an Angular project.

The best practice for creating an Angular project and components is to use the Angular CLI (command-line interface).

The Angular CLI is also used in the latest .NET Angular SPA template. Read Do you know that the ASP.NET Core SPA Template for Angular uses the Angular CLI?

The libraries that are required to get started are:

  1. Node.js ( and NPM (
  2. Git (, and
  3. Angular CLI (

1. Node.js and NPM

The first step is to install Node.js, which comes bundled with NPM. Node.js is a JavaScript runtime that will allow NPM (Node Package Manager) to run on your local machine. NPM allows the installation and management of 3rd party JavaScript libraries on your local machine and Angular project.

Check that you have a version of Node.js installed that is compatible with the latest version of Angular. The latest Long Term Support (LTS) version of Node.js is a safe bet.

To check you have the correct version of Node.js run the following from a terminal/command window.

If you have older versions of Node.js or don't have it installed, please install the latest LTS version from here:

As of Angular 9, you need to be on Node 11+.

node -v

Check that you are running NPM 6+ by running the following from a terminal/console window:

npm -v

If you have a version of NPM < 6, install the latest version running the following command from a terminal/console window. If you don’t have NPM installed, use the Node.js installer to install NPM.

npm install -g npm@latest

2. Git

Install git

Check you have git by running the following from a terminal/command window:

git --version

3. Angular CLI

Check you have the latest version of the Angular CLI installed globally by running the following command in the terminal/command window. Check the result against the latest version shown on GitHub here:

ng v

If you don’t have Angular CLI installed, then run the command below in a terminal/command window to install it.

npm install -g @angular/cli

If you are not running the latest version, we recommend you run the below commands to update the global version of the Angular CLI.

npm install -g @angular/cli@latest

Upgrading the global Angular CLI version will not affect the version of the Angular CLI being used by existing local project. Multiple versions of the Angular CLI can run on the same machine, and the project specific version of Angular CLI will continue to be used by the project until you manually upgrade the project’s local version.

Instructions for upgrading the Angular CLI of an existing project can be found here:

angular cli 8 3 2x
Figure: Running “ng v” (or any other ng command) in the command-line of an older Angular CLI project will give you a warning that the global version is greater than the local version (see yellow text in the screenshot)

Getting errors?

If you get node gyp errors, follow instructions here:

If you get permission errors, follow instructions here:

Which IDE should I use for developing Angular applications?

We recommend you use VSCode - Read more on Do you know the best IDE for Angular?

Adam CoganAdam Cogan
Adam StephensenAdam Stephensen
Duncan HunterDuncan Hunter
Gabriel GeorgeGabriel George

We open source. Powered by GitHub