

Check available Node.js versions to installīefore installing let’s check whether the latest current of Node is on our system or not. + echo 'deb-src bullseye main' > /etc/apt//nodesource.listģ. + echo 'deb bullseye main' > /etc/apt//nodesource.list # Creating apt sources list file for the NodeSource Node.js 16.x repo. Gpg: WARNING: unsafe ownership on homedir '/home/h2s/.gnupg'

+ curl -s | gpg -dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null # Adding the NodeSource signing key to your keyring. OutPut: # Installing the NodeSource Node.js 16.x repo. Hence those who want to get the latest and current version of Node need to add the official Node.js repository manually on Debian Bullseye.įor Latest Version curl -fsSL | sudo -E bash -įor LTS- Lont Tem Support versions use this repo instead above one: curl -fsSL | sudo -E bash. Add Node Js RepositoryĪlthough we already have the node.js to install on Debian 11 using its default base repo, however, the version will be old. Therefore, use the below command to install it: sudo apt install curl 2. Install Curlīy default, there will not be a Curl tool on Debian 11, but we need it to add to the repository. Check version Node js Installation on Debian 11 Bullseye Linux 1.
