109

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

  • Node.js

Latest LTS version

  • Git
  • npm

Latest version available in the OS repositories

  • PM2

Latest version

We will also perform a basic setup:

  • Create a node user
  • Enable the UFW firewall 
  • Allow SSH connections and HTTP and HTTPS traffic 
  • Install a sample app in /home/node/hello-world and start it via PM2

Getting Started
Copy link

To install Node.js on your server:

  1. When creating a new Hostman server or reinstalling an existing one, select MarketplaceNode.js
  2. Select a preferred Ubuntu version: 20.04 or 22.04.
  3. 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>