VPS & DedicatedLinux

Install Node.js

Install Node.js on Linux with NVM (Node Version Manager).

To install Node.js on Linux we recommend NVM (Node Version Manager), which lets you install several Node.js versions and move between them.

Install NVM

bash
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

After the installation, reconnect to SSH or run:

bash
. ~/.bashrc

NVM is now available through the nvm command.

Useful commands

View the installed Node.js versions:

bash
nvm list

Check which version is currently in use:

bash
nvm current
bash
nvm version