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.
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.
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-sLhttps://deb.nodesource.com/setup_14.x | sudo -E bash -
To verify the installation, view the version of Node.js installed in your system with the following command:
Step 3. Install Angular CLI on Ubuntu.
Run below command to install 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:
The app can be run now using the command ng serve:
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.