Install Node js from .tar.xz
-
Download latest version of node from https://nodejs.org/en/
-
Run below command to install node. Do change file name with your downloaded file.
sudo tar -C /usr/local --strip-components 1 -xf node-v8.11.4-linux-x64.tar.xz