Update the repositories.
$ sudo apt updateInstall node and npm.
$ sudo apt install nodejs npmyou can look at the version with:
$ nodejs --version output: v10.19.0If you want to know more here I leave you a blog that explains it in more detail.