How to setup Node.js and Angular CLI on Windows

Step 1: Download Node.js

Download the latest release of Node.js from: Nodejs downloads page. I have downloaded Node.js for Windows 64-bit and the filename is: node-v8.9.3-x64.msi

Step 2: Install Node.js for Windows.

In Windows Explorer, locate the downloaded Nodejs .msi file. Double-click the .msi file. A set of screens will appear to guide you through the installation process. This will install Node.js and Node Package Manager (NPM) on your machine.

Step 3: Verify Node.js Installation

Type the following commands to check the versions of Node.js and NPM
$ node -v
$ npm -v

Step 4: Install Angular CLI

Angular Command Line Interface (CLI) is the easiest way to create new Angular projects. Execute the following NPM command:
$ npm install @angular/cli -g
After this installation, the CLI tool can be accessed by using ng commands.

Step 5: Verify Angular CLI

Type the command: ng -v to check the versions of Angular CLI and Angular. It will give an output similar to the following:
$ ng -v
_                      _                 ____ _     ___
/ \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
/ ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
|___/

Angular CLI: 1.6.0
Node: 8.9.3
OS: win32 x64
Angular: 5.1.0

Related Post

Learn Angular 5 in simple steps. Check my post: Angular 5 Tutorial.

Comments

  1. Thanks for the post. You have explained the topic in very simple and step by step.
    node js developer london

    ReplyDelete
  2. I got some errors when installing angular on windows

    ReplyDelete
    Replies
    1. Hi, What error did you get? Please follow the above steps and you will not get any issues.

      Delete

Post a Comment

Popular Posts

Elasticsearch, Logstash, Kibana Tutorial: Load MySQL Data into Elasticsearch

Dropwizard MySQL Integration Tutorial

Send Email in Java