I downloaded source code(.tar file) file from here
How i install node by tar file in my system?
I downloaded source code(.tar file) file from here
How i install node by tar file in my system?
Solved
we can use this command to extract .tar file and install node in our system
tar -xf node-v8.12.0-linux-x64.tar.xz --directory /usr/local --strip-components 1
And
We can download direct with this command
wget https://nodejs.org/dist/v8.12.0/node-v8.12.0-linux-x64.tar.gz
tar -xf node-v8.12.0-linux-x64.tar.gz --directory /usr/local --strip-components 1
Check is node installed
node -v
npm -v
Note: If you getting permission issue then use sudo
before command.