Skip to content

Instantly share code, notes, and snippets.

@turboza
Created July 31, 2017 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turboza/4e06d704c82d8bc9046257db81e50ea7 to your computer and use it in GitHub Desktop.
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
#!/bin/sh
find . -name "node_modules" -exec rm -rf '{}' +
@turboza
Copy link
Author

turboza commented Jul 31, 2017

I could save 8 GB of my disk space by just simply delete all node_modules in several old JavaScript project.
image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment