Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Install Angular on Windows

Install Node.js and the Angular CLI, then check that it works.

Windows Hosting2 min read6 steps4 screenshots

Step 1: Install Node.js

Angular needs Node.js and npm:

  1. Package management. Node.js comes with npm, which installs Angular and its libraries.
  2. Build tools. Angular build tools and the development server run on Node.js.
  3. Command line. The Angular CLI (ng) is installed with npm.

How to install it:

  1. Open the Node.js website (nodejs.org).
  2. Download the LTS version for Windows.
  3. Run the installer and accept the defaults.
    The Node.js download page

Check the version in Command Prompt:

node -v
Node.js version

Step 2: Install the Angular CLI

Open Command Prompt and run:

npm install -g @angular/cli
Installing the Angular CLI

To get a certain version, add it after an @, for example @angular/cli@17.

What the command does:

  • npm install downloads and installs a package.
  • -g installs it globally, so it works from any folder.
  • @angular/cli is the name of the package.
  • @17 picks version 17 (leave it out for the newest).

The command downloads the CLI and what it needs, installs it, and gives you the ng command to create and manage projects.

Step 3: Check the installation

ng version
Angular CLI version

You see the Angular CLI version, the Node.js version and the operating system.

Create your first app

ng new my-app
cd my-app
ng serve

Open http://localhost:4200 in your browser.

Tips

  • Keep Node.js and the CLI updated (npm update -g @angular/cli).
  • If PowerShell blocks scripts, run Set-ExecutionPolicy RemoteSigned -Scope CurrentUser or use Command Prompt.
  • Use Visual Studio Code with the Angular Language Service extension.

Quick recap

  • Install Node.js LTS.
  • Run npm install -g @angular/cli.
  • Check with ng version.