1. Download node js tar file. For instance to download node 22 version, navigate to https://nodejs.org/en/blog/release/v22.11.0
Click on the belo0w
https://nodejs.org/dist/v22.11.0/node-v22.11.0-linux-x64.tar.xz
2. Copy the file to the linux instance, and from that folder untar the file.
tar -xf node-v22.11.0-linux-x64.tar.xz
3. You will see a folder like node-v22.11.0-linux-x64. Setup the Export path of the node.
4. export PATH=/root/node/node-v22.11.0-linux-x64/bin:$PATH