Software Copy link
In Hostman Marketplace, you can install Node.js on Ubuntu versions 18.04, 20.04, and 22.04. We recommend choosing Ubuntu 20.04 or 22.04 to get the latest Node.js version. For 18.04, we will use an older version for Node.js (v16.20.2).
When you select the Node.js image, we will install the following packages on your server:
|
Software |
Version |
|
Latest LTS version |
|
Latest version available in the OS repositories |
|
Latest version |
We will also perform a basic setup:
- Create a
nodeuser - Enable the UFW firewall
- Allow SSH connections and HTTP and HTTPS traffic
- Install a sample app in
/home/node/hello-worldand start it via PM2
Getting Started Copy link
To install Node.js on your server:
- When creating a new Hostman server or reinstalling an existing one, select Marketplace → Node.js.
- Select a preferred Ubuntu version: 20.04 or 22.04.
- Finish creating your server.
Your server will be online in a couple of minutes. You can navigate to the server IP address in the browser to make sure the sample app works. If everything is installed correctly, you will see a simple "It works!" message.
To connect to the server via SSH, run:
root@<your server IP address>