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

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. For windows:

    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.

    For Mac OS:

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

    For Ubuntu/Linux:

    Open terminal and run the following command one by one:

    
        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
    v16.13.1
  5. Next verify the version of NPM (Node Package Manager) by running the following command:
  6. npm -v
    8.1.2
  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