Skip to content

Instantly share code, notes, and snippets.

@isaax2
Forked from icerda/upgrade-node-with-nvm.sh
Last active May 7, 2020 17:37
Show Gist options
  • Save isaax2/203659c575da48543aff750e9f92dbdb to your computer and use it in GitHub Desktop.
Save isaax2/203659c575da48543aff750e9f92dbdb to your computer and use it in GitHub Desktop.
Upgrade node with nvm
#!/usr/bin/env bash
OLD_VERSION=10.15.3
NEW_VERSION=10.16.3
nvm install $NEW_VERSION --reinstall-packages-from=$OLD_VERSION
nvm alias default $NEW_VERSION
nvm uninstall $OLD_VERSION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment