Updating Node using NVM/NPM

node -v
npm cache clean -f
npm install -g n
sudo n stable
sudo n latest
n [version.number]
  1. Install NVM by copy and paste these two line in the terminal:
touch ~/.bash_profile curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash
nvm --version
nvm ls-remote
nvm install 14.15.1
node -v

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store