Would you like to learn how to install NODE.JS on Ubuntu Linux? In this tutorial, we are going to show you multiple ways to install the Node.js on a computer running Ubuntu Linux version 17.

Hardware List:

The following section presents the list of equipment used to create this Ubuntu Linux tutorial.

Every piece of hardware listed above can be found at Amazon website.

Ubuntu Playlist:

On this page, we offer quick access to a list of videos related to Ubuntu Linux.

Don't forget to subscribe to our youtube channel named FKIT.

Ubuntu Related Tutorial:

On this page, we offer quick access to a list of tutorials related to Ubuntu linux.

Tutorial - Install NODE.JS on Ubuntu Linux

On the Linux console, use the following commands to install the required packages.

# apt-get update
# apt-get install build-essential libssl-dev curl

Create a directory, download and execute the NODE.JS installation script.

# mkdir /downloads
# cd /download
# curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.9/install.sh | bash

Reboot your computer.

# reboot

Use the following command to verify if the NVM_RC_VERSION, NVM_CD_FLAGS and NVM_DIR variable were created.

# env | grep NVM

Use the following command to install NODE.JS.

# nvm install node

The following messages should be displayed.

Downloading and installing node v10.0.0...
Downloading https://nodejs.org/dist/v10.0.0/node-v10.0.0-linux-x64.tar.xz...
######################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v10.0.0 (npm v5.6.0)
Creating default alias: default -> node (-> v10.0.0)

Use the following command to test your installation.

# node -v
# node -e "console.log('Hello from Node.js ' + process.version)"

You have successfully finished the NODE.JS installation.