← Back to blog
node_modules Black Hole: Find Dead Projects Eating Your Mac
Every abandoned side project leaves a 500MB–1GB node_modules folder. Learn how to recursively find and clean them on macOS.
- node_modules
- Developer
- JavaScript
Fifty half-finished repos. Fifty node_modules folders. 50 GB gone — and npm does not clean them for you.
Where they hide
~/Projects/**/node_modules~/Developer/**/node_modules- Old clones in
~/Downloadsor Desktop
Terminal power users run find ~ -name node_modules. Everyone else needs a visual map.
Safe cleanup rules
- Do not delete
node_modulesin a repo you actively work on today. - Prefer removing whole dead project folders, not random nested deps.
- After delete,
npm installrestores a active project in minutes.
FreeUpMac tags node_modules blocks as Review on the treemap. Sort the Largest files list, jump to the folder, confirm, then Trash with Pro.
Who this helps
US and Canada devs with 512 GB MacBook Pros are the worst hit — local AI models and Docker already compete for the same disk.