How to Install Angular on Ubuntu 20.04

Install Angular on Ubuntu 20.04

In this article, we will have explained the necessary steps to install and configure Angular on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Angular is an open-source, popular and highly-extensible front-end application development framework, used for building mobile and web applications using TypeScript/JavaScript and other common languages. Angular is a complete rewrite from the team that built AngularJS.

Install Angular on Ubuntu 20.04

Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.

sudo apt update
sudo apt upgrade

Step 2. Install Node.js

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:

curl -sL | sudo -E bash -
sudo apt-get install -y nodejs

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

node --version

Step 3. Install Angular CLI on Ubuntu.

Run below command to install angular CLI:

npm install -g @angular/cli

Step 4. Creating a New Angular Application.

In this section, we will show how to create, build, and serve a new, basic Angular project:

ng new awesome-project

The app can be run now using the command ng serve:

cd awesome-project
ng serve --open

The –open (or just -o) option automatically opens our browser to the below address:


That’s all you need to do to install Angular on Ubuntu 20.04 LTS Focal Fossa. I hope you find this quick tip helpful. Don’t forget to share your valuable queries/suggestions in the below comment box & also drop your worthwhile feedback.