

Method 2 – How to install NodeJs using NodeSource PPA Check Version – To verify the correct version installation of NodeJs, run the below mentioned command to check version number of recently installed NodeJs: node -v.Install Nodejs and NPM – The “npm” is the package manager of NodeJs, run the below mentioned command to install NodeJs and npm on Debian 11: sudo apt install nodejs npm.Update Packages – First update all the packages previously installed in the System by below mentioned command: sudo apt update.To get this version of NodeJs on your Debian system follow the steps mentioned below:

Method 1 – Installing Nodejs from Debian RepositoryĪt the time of writing this tutorial, the Node.js 12.22.5 version is available under default repositories.
