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:
- 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.
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
node -v
npm -v
npm install -g @angular/cli
ng v