Created
July 31, 2017 03:48
-
-
Save turboza/4e06d704c82d8bc9046257db81e50ea7 to your computer and use it in GitHub Desktop.
Recursively Clean all node_modules in your projects to save a lot of space
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
#!/bin/sh | |
find . -name "node_modules" -exec rm -rf '{}' + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I could save 8 GB of my disk space by just simply delete all node_modules in several old JavaScript project.

ref: https://coderwall.com/p/guqrca/remove-all-node_module-folders-recursively