Skip to content

Instantly share code, notes, and snippets.

@ekahialoha
Forked from median-man/rm_node_modules.sh
Created March 9, 2020 00:09
Show Gist options
  • Save ekahialoha/9e945cacade85f6dfc7450a68bd7e83e to your computer and use it in GitHub Desktop.
Save ekahialoha/9e945cacade85f6dfc7450a68bd7e83e to your computer and use it in GitHub Desktop.
Remove all node_modules folders recursively.
# removes all node_modules folders recursively
find . -name "node_modules" -exec rm -rf '{}' +
# I found this command on Coderwall at
# https://coderwall.com/p/guqrca/remove-all-node_module-folders-recursively
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment