I'm updating the info on the available packages.
sudo apt-get update
Then, I'm installing NodeJs and NPM.
sudo apt-get install nodejs
sudo apt-get install npm
When finished, I get the message that the latest version is installed. I also verify it.
nodejs --version
It says that the version is 8.10.0. However, when I check on NodeJs' page, it says that the latest current version is 10.10.0 (and even the LTS version is higher, 8.11.4).
Clearly, I'm not getting the latest version and being a noob on Linux, I'm sure I've done something wrong, despite following a guide.
My version is, according to the "About", 18.04.1 LTS.
- What am I missing in my ignorance?
- How can I install the recent version of NodeJs?
apt-get
oraptitude
, and configure the system to know what remote package repositories to "reach out to" for the packages. That installation script that you download sets up the proper repositories and then will allow you to follow theapt-get
commands. This is, unfortunately, the most easiest way to get the updated NodeJS directly from them... the concept of standalone "Download and run the installer" exists but is not widespread in the Linux worlds.