Guide to Node.js Installations


Last modified: January 8, 2020

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 or 7, Red Hat® Enterprise Linux® (RHEL) 6 or 7, or CloudLinux™ 6 or 7.
  • 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:

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

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.

Additional Documentation