Guide to Node.js™ Installations
Last modified: August 29, 2023
For more information about Node.js, visit the Node.js website.
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.
Installing Node.js on servers running RHEL-derived operating systems
You can install Node.js on all supported Red Hat® Enterprise License® (RHEL)-based operating systems 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 one of the following packages:
ea-nodejs16Note:If your system runs CentOS 7, you can only install the
Installing Node.js on servers running Ubuntu
To install Node.js on Ubuntu® operating systems run the following commands, where
20.x represents the Node.js version that you want to install:
Install a Node.js application
cPanel users can install Node.js web applications in one 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.
You can uninstall Node.js from a server running an RHEL-derived operating system 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 your NodeJS package.
To uninstall Node.js from an Ubuntu server, run the following command:
apt-get purge --auto-remove nodejs
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.
When you install Node.js, the package includes the following applications:
The system stores these applications in the