DEV Community

immortalt
immortalt

Posted on

Install Node.js on Linux

Using NodeSource

Refer to the NodeSource documentation for more
information on the available versions.

Node.js v14.x:

# Using Ubuntu
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs

# Using Debian, as root
curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
apt-get install -y nodejs
Enter fullscreen mode Exit fullscreen mode

Upgrade npm

npm install -g npm
Enter fullscreen mode Exit fullscreen mode

Top comments (0)