Setup Node JS

Learn how to setup Node JS on Ubuntu machine

karchunt

Kar Chun Tan

Creator

Metadata

Sun Apr 20 2025

1 min read

73 words

Setup Node JS

There are multiple ways to install Node.js on an Ubuntu machine.

Installing Node JS using a NodeSource PPA

# Download the latest NodeSource setup script
curl -fsSL https://deb.nodesource.com/setup_lts.x -o nodesource_setup.sh
sudo -E bash nodesource_setup.sh

# Use either one of the following commands to install Node.js
sudo apt-get install -y nodejs or sudo apt-get install -y nsolid

# check node version
node -v