Running Ubuntu 16.04 on 64bit in a VM.
To be clear, I'm wondering why that specific version of nodejs is the one in the repo. Is it because the developer of nodejs choose to make that the default or is it due to something else?
Running Ubuntu 16.04 on 64bit in a VM.
To be clear, I'm wondering why that specific version of nodejs is the one in the repo. Is it because the developer of nodejs choose to make that the default or is it due to something else?
The reason that the nodejs
package seems so outdated is that it hasn't been updated since Ubuntu 16.04 LTS came out, but you can install v9 of node.js
using these commands:
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install -y nodejs
setup_9.x
is not the only option, and no longer the latest. See https://github.com/nodesource/distributions/blob/master/README.md#deb (and scroll down slightly) for up-to-date versions of the above commands.
– lindes
Apr 14 '19 at 20:55
nodejs
package – Dec 12 '17 at 21:45nodejs
package does have v4.2.6 on the repo for 16.04: https://packages.ubuntu.com/xenial/nodejs – Dec 12 '17 at 22:13