I usually use NVM to install node on server. It gives me option to install multiple version of nodejs. Commands are given below
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
then check if it's install properly
command -v nvm
after that, run this to install latest version
nvm install node
or
nvm install 11