I have downloaded node v5 for Linux on the *node website and found some instructions on how to Install a tar.gz file but this file ends with tar.xz and I can't find any instructions for that. Please help. I have also tried sudo apt-get install which installs a very old version of Node.
1 Answer
Try to install from Terminal
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
Check this for more details.
-
You should never pipe into bash. You should first check out the code you downloaded and only then execute it.Sir Muffington– Sir Muffington2019-11-19 19:36:48 +00:00Commented Nov 19, 2019 at 19:36
.gzand.xzare just different compression. The instructions to install will be the same once you have untarred the package. If you want, you can get the corresponding.gzfile from nodejs.org/dist/v4.4.2