Created
December 6, 2016 16:13
-
-
Save alanshaw/3eec077512e8825c0186f5b7d85c8f2f to your computer and use it in GitHub Desktop.
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
# list individual size | |
find . -name node_modules -maxdepth 3 -exec du -hs {} \; | |
# calc total size | |
find . -name node_modules -maxdepth 3 | du -hs | |
# remove | |
find . -name node_modules -maxdepth 3 -exec rm -rf {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment