Installing NodeJS with apt Run the apt install command below to install NodeJS and NPM on your Debian 11 system. $ sudo apt install nodejs npm -y. Run the following commands to verify that NodeJS and NPM are installed properly. $ node -v v12.22.5 $ npm -v 7.5.2. Feb 18, 2022