How to Install Angular on CentOS 8

Install Angular on CentOS 8

In this article, we will have explained the necessary steps to install and configure Angular on CentOS 8. 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 CentOS 8

Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.

sudo dnf update

Step 2. Install Node.js

Run following command to install Node.js:

sudo dnf install nodejs npm

Verify installtion of Node.js and npm running following command:

node --version

Also, check nvm version and confirm installation typing:

npm --version

Step 3. Install Angular CLI on CentOS.

After installation of node.js and npm on your system, use the following commands to install the Angular CLI tool on your system:

npm install -g @angular/cli

Once installed, let’s check the installed version of Angular on your system:

ng --version

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 ramona-project

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

cd ramona-project
ng serve --open

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

http://localhost:4200

Congratulation, you have learned how to install and configure Angular on CentOS 8. If you have any question, please leave a comment below.