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.
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash