DEV Community

Lumin
Lumin

Posted on

3 2

How to get back your OSX storage from node_modules

inside node_nodules

just run

find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}';
Enter fullscreen mode Exit fullscreen mode

Note:

print all node_modules folder with it's size

find . -name 'node_modules' -type d -prune -print | xargs du -chs
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay