Created
April 27, 2021 15:55
-
-
Save stefanosandes/526a39a257127d9e836eca381807cf13 to your computer and use it in GitHub Desktop.
Clean all 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
# Report all node_modules location and used space | |
find . -name "node_modules" -type d -prune | xargs du -chs | |
# Remove all node_modules | |
find . -name "node_modules" -type d -prune -exec rm -rf '{}' + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment