cPanel

Guide to Node.js™ Installations


Overview

Node.js™ is an open-source server environment that runs JavaScript. It does not use threads and does not block processes. Because of this, it provides efficient resource management.

For more information about Node.js, visit the Node.js website.

Requirements

Before you can install Node.js, your system must meet the following requirements:

  • Your server must run CentOS 6, 7, or 8; Red Hat® Enterprise Linux® (RHEL) 7; AlmaLinux 8, or CloudLinux™ 6, 7, or 8.
  • Your server must run EasyApache 4.
  • You must possess root-level access to the server.
  • Your server’s yum installation must function properly. For more information about yum, read our Yellowdog Updater, Modified (yum) Basics documentation.

Install Node.js

You can install Node.js with one of the following methods:

  • In the interface, to install the ea-nodejs10 module, use the Additional Packages section of WHM’s EasyApache 4 interface (WHM >> Home >> Software >> EasyApache 4).

  • On the command line, to install the ea-nodejs10 module in EasyApache 4, run the following command:

    yum install ea-nodejs10

Install a Node.js application

cPanel users can install Node.js web applications in either of the following ways:

  • Clone an existing application in cPanel’s Git Version Control interface (cPanel >> Home >> Files >> Git Version Control).

  • Create a new application. For an example of how to do this, read our How to Install a Node.js Application documentation.

The Node.js Foundation provides a list of Node.js applications. This list is not comprehensive.

Uninstall Node.js

You can uninstall Node.js with one of the following methods:

  • In the interface, to uninstall the ea-nodejs10 module, use the Additional Packages section of WHM’s EasyApache 4 interface (WHM >> Home >> Software >> EasyApache 4).

  • On the command line, to install the ea-nodejs10 module in EasyApache 4, run the following command:

    yum remove ea-nodejs10

Troubleshoot Node.js

If you experience issues with your Node.js installation, use Phusion Passenger’s™ Troubleshooting Passenger Standalone and Node.js documentation to troubleshoot the issue.

Included applications

When you install the ea-nodejs10 package, the package includes the following applications:

  • Node.js
  • NPM — A Node process manager.
  • NPX — A Node process runner.

The system stores these applications in the /opt/cpanel/ea-nodejs10/bin/ directory.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *