I'm writing this quick tip just so I don't have to google it every single time I run out of disk space. If you have a lot of JS projects on disk, that means you have a lot of node_modules folders taking up a bunch of space. You can easily clean them up in 2 different ways:
Delete all node_modules folders
- Open a terminal
- Navigate to the folder where you store your web dev projects
find . -name "node_modules" -exec rm -rf '{}' +
Be patient because this can take a while and there won't be any progress bar or visual indication that the node_modules are being deleted
Choose folders to delete

- Open a terminal
- Navigate to the folder where you store your web dev projects
- Run
npx npkill. This package will give you an interactive CLI which will measure how much space thenode_modulesare taking and it will let you choose which ones to delete
That's it, enjoy your disk space ๐
ยProducts I've built
Small, focused apps for developers, creators, and anyone trying to stay focused.
Sizzy๐ฃ
One window that shows your site on every device at once.
Open SizzyJustWriteโ๏ธ
Kiosk-mode writing that locks every exit until you hit your goal.
Open JustWriteZero To Shipped๐ข
SaaS boilerplate with auth, billing, and teams already wired.
Open Zero To ShippedTinkerers Club๐ ๏ธ
A community of builders shipping side projects in public.
Open Tinkerers Club