1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Install node.js on Cloud Server
This guide explains how to use Node.js with a Managed Cloud Server.
What is Node.js?
Node.js is a free JavaScript software platform geared towards network applications that need to be scalable.
At the moment, Node.js is not available with shared web hosting.
⚠️ For additional assistance contact a partner or submit a tender — also read the role of the host
Prerequisites
- Install NVM on your Cloud Server
Install Node.js
To install Node.js via NVM (note that version 18 is not compatible with older Cloud Servers - to perform a migration, read this guide (click here) first):
- Run the command:
nvm install stable
or to install an earlier version (not recommended):nvm install 17
- List available versions:
nvm ls-remote
- To install a specific version:
nvm install
or to install the latest version:nvm install node
- Switch Node.js version, to set version 6.3.1 (or another version):
nvm alias default 6.3.1
Source
Visit the WebSSH console of your Cloud Server to set up NVM:
- Source the .profile file:
source ~/.profile
- Run the command:
nvm
Configure Node as a service
To configure Node as a service, we recommend using a "systemd-user service".
Redirect traffic to a specific port
Read this guide (click here) about redirecting traffic to a specific port and dedicated IPs.