Last active
July 31, 2017 14:31
-
-
Save mplacona/ea28a70df6de4bfc7aa78a2c8df7b1ff to your computer and use it in GitHub Desktop.
Cleanup space from node_modules
This file contains 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
# cd to your project folder | |
# How much space is it using? | |
find . -type d -maxdepth 3 -name node_modules | xargs du -hcs | grep total | |
# Get rid of them | |
find . -type d -maxdepth 3 -name node_modules | xargs -p rm -rf # Will prompt before deleting. answer y/n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment