Goto https://nodejs.org/en/download
Select Linux and x64 if that is what you are running
Copy the Download link https://nodejs.org/dist/v22.15.0/node-v22.15.0-linux-x64.tar.xz and download the file
Have a look at what is in the archive
1 | tar -tvf node-v22.15.0-linux-x64. tar .xz |
Run tar with --strip-components
and -C /usr/local
arguments
1 | tar --strip-components=1 -C /usr/local -xvf node-v22.15.0-linux-x64. tar .xz |
Look for node
1 | which node |


0 Comments