himynameisoleg

Free Up Disk Space, delete node_modules

Here is a simple little script that checks a directory for node module and prints the total damage done:

cd directory_to_check 
find . -name "node_modules" -type d -prune | xargs du -chs

To remove them use:

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