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
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 nodejsCheck versions: