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.
Install Angular on CentOS 8
Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.
Step 2. Install Node.js
Run following command to install Node.js:
Verify installtion of Node.js and npm running following command:
Also, check nvm version and confirm installation typing:
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:
Once installed, let’s check the installed version of Angular on your system:
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:
Congratulation, you have learned how to install and configure Angular on CentOS 8. If you have any question, please leave a comment below.