Exclusive Metin2 game shield on FreeBSD: Automatic siege mode, VIP list, and whitelist from your dashboard. See how it works
Create a server

Guide

How to Install Node.js on Ubuntu

ode.js runs JavaScript on the server (APIs, bots, front builds). On a VPS pick a stable LTS release.

Steps

  1. Add the NodeSource LTS repo (22.x example) and install:

    curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
    sudo apt install -y nodejs
  2. Check versions:

    node -v
    npm -v
  3. Smoke-test a tiny HTTP server:

    node -e "require('http').createServer((_,r)=>r.end('ok')).listen(3000)"
  4. Optional: install pm2 for production process management:

    sudo npm install -g pm2
    pm2 -v

Tips

  • eed multiple versions per project? Prefer nvm over the system package.
  • Do not run apps as root; use a deploy user.

ext step

ode API on your own VPS: Deploy your Cloud VPS.

Related guides