install nodejs from tar.xz ubuntu code example
Example 1: install tar.xz in ubuntu
tar xf [filename]
This will expand the contents of the file to a folder. Then the commands are, from the folder:
./configure
make
sudo make install
Example 2: install node in linux from tar
# NodeJSexport NODEJS_HOME=/opt/node-v10.1.0-linux-x64/binexport PATH=$NODEJS_HOME:$PATH
Example 3: install node in linux from tar
nano ~/.profile