First update the Debian apt package repository to include the NodeSource packages: Now that we have added the NodeSource package repository, we can move on and install Node.js! After it finished validate install by typing: You should get a response like "$ 12.10.0". Now you are good to go to run npm.