Guide to Node.js™ Installations


Last modified: July 14, 2022

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:

  • You must possess root-level access to the server.
  • Your server’s package manager must function properly. For more information about package managers, read our Package Manager Basics documentation.

Install Node.js

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

  • In the interface, install the Node.js package in the Additional Packages section of WHM’s EasyApache 4 interface (WHM >> Home >> Software >> EasyApache 4).

  • On the command line, use your package manager to install the ea-nodejs16 package.

Install a Node.js application

cPanel users can install Node.js web applications in one 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, uninstall the Node.js package in the Additional Packages section of WHM’s EasyApache 4 interface (WHM >> Home >> Software >> EasyApache 4).

  • On the command line, use your package manager to uninstall the ea-nodejs16 package.

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.

If you experience issues with the port on which your Node.js applications listens, use Phusion Passenger’s™ Reverse port binding in Node.js documentation to troubleshoot the issue.

Included applications

When you install Node.js, 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-nodejs16/bin/ directory.

Additional Documentation