

Developer03.07.2026·2 min read
Is it safe to delete node_modules? (and how to get the space back)
Yes, deleting node_modules is safe: it's fully reproducible from package.json and your lockfile. Here's when to delete it, how to find every stale copy on your Mac, and how to reclaim the space.