Skip to content

Instantly share code, notes, and snippets.

@senhongo
Created October 19, 2016 08:29
Show Gist options
  • Save senhongo/76949623ecb3a0b0f196bfb9c7dc4f42 to your computer and use it in GitHub Desktop.
Save senhongo/76949623ecb3a0b0f196bfb9c7dc4f42 to your computer and use it in GitHub Desktop.
reinstall global packages after upgrading Node.js using nvm

nvm reinstall-packages v6.3

Above code reinstalls all global packages from v6.3 into whatever is the current version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment