Post

How to install Angular CLI?

To install Angular CLI, you’ll need Node.js installed on your system. Follow these steps:

1. Install Node.js

  • Visit the official Node.js download page.
  • Download the latest stable version of Node.js for your operating system.
  • Run the setup wizard to install Node.js.

2. Verify Node.js Installation

  • Open a command prompt or terminal.
  • Type the following command to check if Node.js is installed:

    node -v

  • This should display the installed version of Node.js.

3. Install Angular CLI

  • After installing Node.js, open a command prompt or terminal.
  • Run the following command to install Angular CLI globally:

    npm install -g @angular/cli

  • The -g flag specifies global installation.

4. Verify Angular CLI Installation

  • To check if Angular CLI is successfully installed, type:

    ng --version

That’s it! You’re now ready to create and work with Angular projects using Angular CLI. 😊

Angular CLI screen shot

Enjoy this blog? Buy Me A Coffee 💖 Sponsor on GitHub
This post is licensed under CC BY 4.0 by the author.

Comments powered by Disqus.