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.
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
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:
[[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:
[[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.