Although sudo apt install nodejs works, it's not recommended because there will be permission issues when trying to install packages globally (ie. npm install -g sass).
A better way to install Node.js is to use Node Version Manager (nvm).
# Check the github page for the latest version
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash
# Need to source profile so nvm is reloaded in current terminal. Or just start a new terminal
source ~/.profile
# Installs the latest version of Node.js and npm
nvm install node
# Check the version
node -v
npm -v
# Check the paths
which node
which npm
# Optional: Add node to sudo path (otherwise `sudo node` doesn't work)
echo "alias sudo='sudo env PATH=$PATH:$NVM_BIN'" >> ~/.bashrc