Updating Node.js on your RunCloud server is now easier than ever! This guide shows you how to install and run a Bash script that lets you choose the Node.js version you want. Perfect for developers who want control and simplicity. Made by developer for developer.
Why You Need This Script
Keeping Node.js up to date ensures better performance, security patches, and access to the latest features. Instead of manually configuring repositories, this script automates the process and lets you pick the version interactively.
The GitHub public repository: https://github.com/codetot-web/runcloud-bash-scripts/blob/main/update-nodejs.sh
Installation Steps
Step 1 – Download the Script
Login as root user. Then, download this script:
wget https://github.com/codetot-web/runcloud-bash-scripts/raw/refs/heads/main/update-nodejs.sh
Step 2 – Make It Executable
Set permission.
chmod +x update-nodejs.sh
Step 3 – Run the Script
Run the script. The script will prompt you to enter the Node.js version (e.g., 20 or 22).
./update-nodejs.sh
The script will prompt you to enter the Node.js version (e.g., 20 or 22).
Step 4 – Verify Installation
node -v
npm -v
Notes and Best Practices
- Requires sudo privileges
- Works on Debian/Ubuntu-based systems
- Always verify the version number before installation


