Created
September 28, 2019 14:13
-
-
Save jeserodz/452625f7c689033300c8866e8d2ced92 to your computer and use it in GitHub Desktop.
Find and remove node_modules
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 characters
# Find and list all node_modules under a given directory | |
find ~/Playground -type d -name 'node_modules' -prune | xargs du -sh | gsort -rh | |
# Find and delete all node_modules under a given directory | |
find ~/Playground -type d -name 'node_modules' -prune | xargs rm -r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment