-1

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

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)

Update 2: You can install nvm and run nvm install <version and nvm use <version>