Created
December 7, 2017 15:28
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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