-
-
Save shawn-dsz/fbe51568abff8b7a417bd3956cfc0ee5 to your computer and use it in GitHub Desktop.
Revisions
-
dmythro created this gist
Jul 1, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ #!/bin/bash # Uninstall all Global modules from NPM # http://stackoverflow.com/questions/9283472/command-to-remove-all-npm-modules-globally npm -g ls | grep -v 'npm@' | awk '/@/ {print $2}' | awk -F@ '{print $1}' | xargs npm -g rm