Install node in /usr/local

by | May 5, 2025 | IT Tips | 0 comments

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

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.