How to Install Node.js On cPanel Enabled Server

May 15, 2023 / cPanel & WHM

In this article, we will describe two different methods to install Node.js on cPanel server. First command line and Second WHM interface.

How to install NodeJS via the command line:

  1. Log into SSH as “root user”.
  2. Run the following command.
    yum install ea-nodejs16
  3. Use the following command to make sure that it has been installed correctly.
    /opt/cpanel/ea-nodejs16/bin/node -v

How to install NodeJS via the WHM interface:

  1. Log into your WHM as “root user”.
    Login to WHM Account
  2. Navigate to » Software » EasyApache 4.
    Go to EasyApache 4
  3. Click on the “Customize” button.
    Click on "Customize"
  4. Search for the “Apache Modules”, type “ea-apache24-mod_env” on the search bar, swipe the toggle to “Install”.
    Install Apache Modules
  5. Navigate to “Ruby via Passenger”, type ” ea-ruby27-mod_passenger” on the search bar, swipe the toggle to “Install”.
    Ruby via Passenger
  6. Find out  “Additional Packages”, type “ea-nodejs16” on the search bar, swipe the toggle to “Install”.
    Install Additional Packages
  7. After completing the provision, click “Next” to continue.

In this way, you can install Node.js on cPanel server.

Also Read : How to Fix the Node.js Application error: “Cannot GET” URL

Dominos Search