Skip to content

Instantly share code, notes, and snippets.

@giggio
Created December 7, 2017 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save giggio/3f1056bc9d7bb3f92e8959c05de134a6 to your computer and use it in GitHub Desktop.
Save giggio/3f1056bc9d7bb3f92e8959c05de134a6 to your computer and use it in GitHub Desktop.
If you are using Nvm in Windows you need to reinstall your global npm packages when you change node versions, this helps you do it.
npm i -g $( ls $env:programdata\nvm\v8.9.1\node_modules | % { $_.Name } | ? { ! $_.StartsWith('@') -and $_ -ne 'npm' } )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment