How to install Node JS on Debian 11

Oct 21, 2021 · 1 min read · Post a comment
How to install Node JS on Debian 11

There are a few methods to install Node js on Debian 11.

  • Using PPA
  • Using NVM
  • From the Debian official packages I’m going to pick up the last one because it’s a quick and easy to install method, but essentially it’s a stable and long term option.


  • Debian 11

Install Node js on Debian 11 using Debian official packages

Step 1. As a routine update the packages.

sudo apt update

Step 2. Once is done you can install node and npm together.

sudo apt install nodejs npm

Step 3. Make sure that the installation is done.

node -v

Example output:


Step 4. Check the npm version as well.

npm -v

Example output:



The installation is pretty quick and simple, so I don’t expect you to face issues, but if there is something you can raise it in the comments below. Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.