- Choose the version: https://nodejs.org/dist/
- On Centos7 choose “x64” .gz linux build archive.
- And run following command
sudo tar --strip-components 1 -xzvf node-v* -C /usr/local
Backing you up.
sudo tar --strip-components 1 -xzvf node-v* -C /usr/local