How to get back your OSX storage from node_modules
Lumin

Lumin @ilumin

Location:
Bangkok, Thailand
Joined:
Jan 25, 2018

How to get back your OSX storage from node_modules

Publish Date: Dec 6 '22
5 0

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

Comments 0 total

    Add comment