BuycPanel Blog

BuycPanel Blog

Latest news and updates

How do you Install and Configure Node.js?

Posted by Allura on 26 04 2019.

A brief introduction
Node.js™ can be defined as an open-source server environment that runs JavaScript. It provides for efficient resource management as it neither uses threads nor does it block processes.If you want more information about Node.js you can visit the official Node.js website.Requirements
If you want to install Node.js,  please make sure that your system meets the requirements that are listed below:It is of absolute importance that your server mustrun CentOS 6 or 7, Red Hat® Enterprise Linux® (RHEL) 6 or 7, or CloudLinux™ 6 or 7.
You also have to remember that your server mustrun EasyApache 4.
You also have to ensure that you have root-level access to the server. It is absolutely mandatory.
You have to ensure that your server’s yum installation mustfunction properly. If you want to know more yum, you can read our Yellowdog Updater, Modified (yum) Basics documentation.Install Node.js
Next, you can install Node.js with any one of the methods listed below:
In…

A brief introduction

Node.js™ can be defined as an open-source server environment that runs JavaScript. It provides for efficient resource management as it neither uses threads nor does it block processes.

If you want more information about Node.js you can visit the official Node.js website.

Requirements

If you want to install Node.js,  please make sure that your system meets the requirements that are listed below:

  • It is of absolute importance that your server mustrun CentOS 6 or 7, Red Hat® Enterprise Linux® (RHEL) 6 or 7, or CloudLinux™ 6 or 7.
  • You also have to remember that your server mustrun EasyApache 4.
  • You also have to ensure that you have root-level access to the server. It is absolutely mandatory.
  • You have to ensure that your server’s yum installation mustfunction properly. If you want to know more yum, you can read our Yellowdog Updater, Modified (yum) Basics documentation.

Install Node.js

Next, you can install Node.js with any one of the methods listed below:

In the interface

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

On the command line

If you want to install the ea-nodejs10 module in EasyApache 4, you can easily run the following command on the command line:

yum install ea-nodejs10

Uninstall Node.js

In the interface

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

On the command line

If you want to uninstall the ea-nodejs10 module in EasyApache 4, you can run the following command on the command line:

yum remove ea-nodejs10

Included applications

When you choose to install the ea-nodejs10 package, please remember that the package includes the applications listed below:

  • js
  • NPM— It is a Node process manager.
  • NPX— It is a Node process runner.

It is worth mentioning that the system stores these applications in the /opt/cpanel/ea-nodejs10/bin/ directory.

Install a Node.js application

People who use cPanel have the option of installing Node.js web applications in either of the following ways:

  1. They have the option to clone an application which already exists in cPanel’s Git Version Controlinterface (cPanel >> Home >> Files >> Git Version Control).
  2. Or, they can create a new application. If you want to know how to do this, you can go through our How to Install a Node.js Application

The Node.js Foundation provides for a list of Node.js applications. However, it is important to note that the list is not comprehensive.

Concluding thoughts

This document details upon the installation and configuration of Node. js.