---
title: How to install Nodejs on Cyberpanel Ubuntu Server
description: "To install nodejs on Cyberpanel, follow the steps below. **Step 1: Update the system** `sudo apt -y update` ![](https://truehost.com/support/wp-content/uploads/2024/08/image-26.png) Then run `apt-get install nodejs npm` The above will install the default nodejs that ships with the OS. To install a…"
url: "https://truehost.com/support/knowledge-base/how-to-install-nodejs-on-cyberpanel-ubuntu-server/"
updated: "2024-08-29"
category: Cyberpanel
---

# How to install Nodejs on Cyberpanel Ubuntu Server

To install nodejs on Cyberpanel, follow the steps below.

**Step 1: Update the system**

`sudo apt -y update`

![](https://truehost.com/support/wp-content/uploads/2024/08/image-26.png)

Then run

`apt-get install nodejs npm`

The above will install the default nodejs that ships with the OS.

To install a Specific version, follow the steps below.

Visit this link: [https://github.com/nodesource/distributions](https://github.com/nodesource/distributions) and check for available versions.

In my case, I'll use Node 22.

**Step 2 : Install curl if not available**

`sudo apt-get install -y curl`

![](https://truehost.com/support/wp-content/uploads/2024/08/image-27.png)

**Step 3: Download the setup script:**

`curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh`

![](https://truehost.com/support/wp-content/uploads/2024/08/image-28.png)

**Step 4: Run the setup script with sudo:**

`sudo -E bash nodesource_setup.sh`

![](https://truehost.com/support/wp-content/uploads/2024/08/image-29.png)

Final message should be as below when the setup script completes.

![](https://truehost.com/support/wp-content/uploads/2024/08/image-30.png)

**Step 5: Install Node.js:**

`sudo apt-get install -y nodejs`

![](https://truehost.com/support/wp-content/uploads/2024/08/image-31.png)

**Step 6: Verify the installation:**

`node -v`

![](https://truehost.com/support/wp-content/uploads/2024/08/image-32.png)

That's It. You're all done.
