clozed2u
10/11/2014 - 6:12 PM

Uninstall all node modules globally except for npm

Uninstall all node modules globally except for npm

npm -g ls | grep -v 'npm@' | awk '/@/ {print $2}' | awk -F@ '{print $1}' | xargs npm -g rm