Installing Angular on Windows, Ubuntu/Linux, and Mac OS

  • Last updated Apr 25, 2024

In this tutorial, we will show you how to install Angular on Windows, Ubuntu/Linux, and Mac OS.

Follow the steps below to install Angular on Windows, Ubuntu/Linux, and Mac OS:

  1. First install Node.js:
  2. Install Node.js Windows Installer (.msi) 64-bit (LTS version) by downloading it from the official site of Node.js at https://nodejs.org/en/download.

    Install Node.js macOS Installer (.pkg) by downloading it from the official site of Node.js at https://nodejs.org/en/download.

    Open a terminal and run these commands:

    sudo apt install nodejs
    sudo apt install npm
  3. After the installation is complete, verify the Node.js version by executing node -v command on the terminal:
  4. node -v
  5. Next verify the version of NPM (Node Package Manager) by running the following command:
  6. npm -v
  7. Open a terminal window and enter the following command to install the Angular CLI:
  8. npm install -g @angular/cli
  9. Next, run the following command to check the installed version of Angular:
  10. ng v