1. First login into linux virtual machine and update package using below commands .
    1. apt update

2.  Next, run the following command to configure nvm .

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash

3. Next run the below commands 

source ~/.profile


4. After that find the available node js version using bellow commands 

nvm ls-remote

5. Next you can install any version using bellow commands 

               nvm install   [ version name ]

For ex. – nvm install 14.10.0

6. After next you can check node v and npm -v using bellow commands 

 node -v

 npm -v