
Step 1
Open a terminal and update the repository list:
sudo apt update
This command will prompt to type y for yes.
Step 2
Enter the command to install Nodejs. This command will prompt you to type y for yes.
sudo apt install nodejs
When done type:
node --version
Should show something like: