Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags


How to install Angular on Ubuntu

Educative Answers Team

Angular is a TypeScript-based, open-source web application framework led by the Angular Team at Google. Angular is a complete rewrite from the team that built AngularJS.

svg viewer


Before starting with Angular, you need to make sure that you already have Node.js installed in your system. If you do not, run the following commands on the terminal to add Node.js PPA in your Ubuntu system and install it:

sudo apt-get install software-properties-common
curl -sL | sudo -E bash -
sudo apt-get install nodejs

To verify the installation, view the version of Node.js installed in your system with the following command:

node --version

Install Angular

After you have installed Node.js on your system, use the following commands to install the Angular CLI tool on your system:

npm install -g @angular/cli

npm is the node package manager used to install the Angular command-line interface on a system.

The -g flag will install the Angular CLI tool globally so that it will be accessible to all users and applications on the system.

To verify the installation, check the version of Angular installed in your system using the ng command in Angular CLI:

ng --version


Copyright ©2022 Educative, Inc. All rights reserved

View all Courses

Keep Exploring