Skip to content

Instantly share code, notes, and snippets.

@carlessistare
Created October 4, 2013 12:45
Show Gist options
  • Save carlessistare/6825366 to your computer and use it in GitHub Desktop.
Save carlessistare/6825366 to your computer and use it in GitHub Desktop.
This removes all npm modules globally
npm -g ls | grep -v 'npm@' | awk '/@/ {print $2}' | awk -F@ '{print $1}' | xargs npm -g rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment