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:
- First install Node.js: For windows:
- After the installation is complete, verify the Node.js version by executing node -v command on the terminal:
- Next verify the version of NPM (Node Package Manager) by running the following command:
- Open a terminal window and enter the following command to install the Angular CLI:
- Next, run the following command to check the installed version of Angular:
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
node -v
v16.13.1
v16.13.1
npm -v
8.1.2
8.1.2
npm install -g @angular/cli
ng v