install nodejs from tar.xz code example
Example 1: install node in linux from tar
# NodeJSexport NODEJS_HOME=/opt/node-v10.1.0-linux-x64/binexport PATH=$NODEJS_HOME:$PATH
Example 2: install node in linux from tar
. ~/.profile
# NodeJSexport NODEJS_HOME=/opt/node-v10.1.0-linux-x64/binexport PATH=$NODEJS_HOME:$PATH
. ~/.profile