Would you like to learn how to install Node? In this tutorial, we are going to show you how to install NodeJS on a computer running Linux.

• Ubuntu 18
• Ubuntu 19
• Ubuntu 20
• Ubuntu 22

Equipment list

Here you can find the list of equipment used to create this tutorial.

This link will also show the software list used to create this tutorial.

Tutorial Linux – Installing Node Version Manager (NVM)

Download and install NVM.

Copy to Clipboard

Optionally, use WGET to download and install NVM.

Copy to Clipboard

Log out and log in again.

Copy to Clipboard

Test the NVM installation.

Copy to Clipboard

You have finished the installation of Node Version Manager.

Tutorial Linux – Installing Node using NVM

List the available versions of Node for installation.

Copy to Clipboard

Multiple versions of Node will be displayed.

Copy to Clipboard

Install the latest release of Node.

Copy to Clipboard

Here is the command output.

Tutorial - Node Installation using NVM

Optionally, install the LTS version of Node.

Copy to Clipboard

Optionally, install a specific version of Node.

Copy to Clipboard

List the Node versions installed on the System.

Copy to Clipboard

Set a default Node version to be used.

Copy to Clipboard

Test the Node installation.

Copy to Clipboard

You have finished the installation of Node on Linux.