Setup Node JS¶
There are multiple ways to install Node.js on your system. One of the most popular methods is to use the NodeSource PPA (Personal Package Archive).
Installing Node JS using a NodeSource PPA¶
Bash
# 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