Warning! These instructions are mainly for Ubuntu and Debian. There are probably similar ways of accomplishing the exact same thing in other distros as well.
- If you want to install node and npm for all users, even users who don't have admin privileges, first you need to install them as a root (sudo) user.
sudo apt update
sudo apt upgrade
sudo apt install curl build-essential