How to save space for untouched node projects

Yvonnelikes
Apr 28 · 1 min read

Remove all node_module folders (or any type of folder/file)

find . -name "node_modules" -exec rm -rf '{}' +

That will delete the folder and files even if there is a space in the name.

That saved a lot memory for node projects which you had not touched in a while.

If you need the node modules back, just easily simply run npm install

Yvonnelikes

Written by

*love code and food*my blog https://yifangdi.blogspot.com/

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade