

You should see the node version like this: Type this command in the terminal and hit enter. We need to make sure that we have successfully installed NodeJs on Debian 11 or not, and to do that the command is: $ node -v After it has finished downloading you should have node and npm installed on your Debian 11 computer. This command will install NodeJS and “ npm” which is the package manager of NodeJS:Īfter pressing the enter button it’ll prompt you that it will take some space, type in “ Y” to continue as shown below:Īfter this, it’ll start downloading NodeJS and NPM. This means that you have successfully updated all the packages and now you can move on to the next step.Īfter the prereq of this process is done, which is to update the packages, we can move ahead and try installing nodeJs and npm together with the command given below: $ sudo apt install nodejs npm After hitting enter, let the process of updating complete, and once it’s done you would see this: You’ll be prompted for credentials as this command requires the user to be a SuperUser or to have Sudo rights (administrative rights for Linux). To start with the first step, you need to open up a new terminal in Debian 11 and run the following command in it. So, to install NodeJs and NPM, the steps are: There may be other ways of installing NodeJs on different Linux distributions even for Debian 11, but the most efficient and the most recommended method of installing NodeJS and NPM would be to use the official Debian repository, as it keeps us safe from various malware\viruses and other bloatware.

So, the purpose of this tutorial would be to show how to install NodeJs on Debian 11 (Bullseye). It is common for people to shift to a new distro and not know how to install various programs and environments on it, for example, the NodeJs environment. With the release of the newest Debian distro of Linux the Debian 11, many people have shifted to Debian 11. With the ever-increasing demand for web applications due to COVID-19, the popularity of NodeJs grew even more drastically. It even eases the process of developing a web-based application. That is because it provides various incredible libraries of JavaScript modules which help greatly in the development of full-stack web applications.

NodeJS is probably the most famous JavaScript environment.

If you are trying to become a full-stack developer or only a server-side \ backend developer then NodeJS can be your priority. NodeJs is most commonly used to develop the back-end or the server side of full-stack applications. NodeJS is often mistaken as a framework of JavaScript, but in reality, it is not a framework of JavaScript but JavaScript in runtime.
