Upgrade nvm to Latest Version

October 22, 2019

Manual Upgrade

https://github.com/nvm-sh/nvm/blob/master/README.md#manual-upgrade

Install git

sudo apt-get install git

Upgrade nvm

(
  cd "$NVM_DIR"
  git fetch --tags origin
  git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
) && \. "$NVM_DIR/nvm.sh"

Check nvm version

nvm --version
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.