Step 1: Install nvm package
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
Step 2: Set Env
export NVM_DIR="/root/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
Step 3: Install node version
User guide: https://github.com/nvm-sh/nvm#usage
nvm install 12