0

I installed node with the command sudo apt install nodejs, and then I check the version with the command node --version and i Get that I have v12.21.0 node version. But on nodeJS website I see that the latest version is 14.17.3. Why is that? And what can I do to get the latest version of node? I must use the latest version because this version do not get the new syntax.

dotan
  • 1
  • 2
  • 2
    Does this answer your question? [Why don't the Ubuntu repositories have the latest versions of software?](https://askubuntu.com/questions/151283/why-dont-the-ubuntu-repositories-have-the-latest-versions-of-software) – Organic Marble Jul 21 '21 at 17:54
  • you can install the latest version of nodejs from the nodeSource. Here is the installation instruction for every version https://github.com/nodesource/distributions/blob/master/README.md#installation-instructions and it is listed as officail nodejs package manger https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions – Parag Katoch Jul 22 '21 at 04:18
  • Does this answer your question? [How do I install the latest version of node.js?](https://askubuntu.com/questions/49390/how-do-i-install-the-latest-version-of-node-js) – karel Jul 23 '21 at 11:25

1 Answers1

0

I tried a few things to add repositories to my system and stuff like that, but nothing worked for me. One thing I did find, is that you can download binaries from https://deb.nodesource.com/node_14.x/pool/main/n/nodejs/, although that's probably not recommendable. I haven't been able to install one of the binaries due to dependency issues other issues, so try at your own risk.

Update: I have been able to install a 18.7.0 binary (this one)

Ciro García
  • 411
  • 4
  • 9