In this article, we’ll explain how to install NodeJS on AlmaLinux 8.3.
Node.js is an open-source, cross-platform, back-end JavaScript runtime environment that executes JavaScript code outside a web browser.
Prerequisites
A AlmaLinux installed dedicated server or KVM VPS.
A root user access or normal user with administrative privileges.
Install NodeJS on AlmaLinux 8.3
Step 1 - Keep the server up to date
# dnf update -y
Step 2 - List available NodeJS streams
Stream corresponds to the major version of Node.js. To see a list of available streams, use following command:
# dnf module list nodejs
Output:
AlmaLinux 8.3 - 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 [e] common [d] [i], development, minimal, s2i Javascript runtime
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
Step 3 - Install NodeJS on AlmaLinux
For this demonstration purpose, we’re installing Node.JS 14 using following command:
# dnf module install nodejs:14
Step 4 - Verify the installation
# node -v && npm -v
Output:
v14.15.0
6.14.8
That’s it. The installation has been completed successfully.
In this article, we have seen how to install NodeJS on AlmaLinux 8.3.
Top comments (0)