Settings

Theme

Running Out of Laptop Storage Managing Multiple Node.js/Next.js Projects?

1 points by sanmak a year ago · 0 comments · 1 min read


If you're dealing with storage issues while juggling multiple Node.js and Next.js projects, I've found a quick and effective solution: delete node_modules and .next folders for projects not in active development. You can automate it with these commands:

For node_modules: find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \;

For Next.js .next folders: find . -name '.next' -type d -prune -print -exec rm -rf '{}' \;

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection