How to Install AngularJS on Rocky Linux 8

Install AngularJS on Rocky Linux 8

In this article, we will have explained the necessary steps to install AngularJS on Rocky Linux 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. AngularJS also provides an MVC architecture that allows developers to use both controllers and views within their application, making it easy for designers who are not well versed in programming languages like HTML and CSS but still want the ability to be able to design interfaces without having any knowledge about how they work behind the scenes.

Install AngularJS on Rocky Linux 8

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

sudo dnf install epel-release
sudo dnf update
sudo dnf upgrade

Step 2. Install Node.js

Now check all available repository modules for Node.js on your Rocky Linux system:

sudo dnf module list nodejs

Output:

[[email protected] ~]# sudo dnf module list nodejs
Last metadata expiration check: 4:07:57 ago on Thu 17 Sep 2021 09:11:13 PM EDT.
Rocky Linux 8 - AppStream
Name      Stream    Profiles                                Summary
nodejs    10 [d]    common [d], development, minimal, s2i   Javascript runtime
nodejs    12        common [d], development, minimal, s2i   Javascript runtime
nodejs    14        common [d], development, minimal, s2i   Javascript runtime

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

To enable the latest NodeJS stream, run the command:

sudo dnf module install nodejs:14

After that, verify the repository module Node.js using the command below:

node -v

Output:

[[email protected] ~]# node -v
v14.16.2

Step 3. Install AngularJS on Rocky Linux.

Now you can install Angular using npm install -g @angular/[email protected] command as shown below:

npm install -g @angular/cli

To verify that AngularJS is installed, check the version by running this command:

ng version

Result:

[[email protected] ~]# ng --version

    _                      _               ____ _    ___
   / \    _ __   __ _ _ _ | | __ _ _ __   / ___| |  |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__| | |   | |  | |
 / ___ \| | | | (_| | |_| | | (_| | |    | |__ | |_  | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|     \____|____|___|
                |___/

Angular CLI: 12.2.9
Node: 14.17.6
OS: linux x64

That’s all you need to do to install AngularJS on Rocky Linux. I hope you find this quick tip helpful. For further reading on the AngularJS framework, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.