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:
node -vnpm -vSmoke-test a tiny HTTP server:
node -e "require('http').createServer((_,r)=>r.end('ok')).listen(3000)"Optional: install pm2 for production process management:
sudo npm install -g pm2pm2 -v
Tips
- eed multiple versions per project? Prefer
nvmover 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.