# lists all versions
nvm ls-remote
# installs the version you want (in this case version 14.0.0)
nvm install v14.0.0
# use the version that you installed as the default
nvm use v14.0.0
npm install -g npm@15.0.0
# step 1: specify node version (e.g: ~10.x)
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
# step 2: install
sudo apt install nodejs
nvm install v14.16.0
// For Mac with brew
brew install node@xx.xx.x
// For npm
npm install -g node@xx.xx.x
nvm install v10.15 //v10.15 is a version i want.
$ nvm install 12
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash