FOR /d /r . %d in (node_modules) DO @IF EXIST "%d" echo %d"
FOR /d /r . %d in (node_modules) DO @IF EXIST "%d" rd /s /q "%d"
# linux/mac
find . -name "node_modules" -type d -prune | xargs du -chs # list
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
- https://winsmarts.com/delete-all-node-modules-folders-recursively-on-windows-edcc9a9c079e
- https://stackoverflow.com/questions/25554254/batch-command-to-delete-all-subfolders-with-a-specific-name
- https://medium.com/@MarkPieszak/how-to-delete-all-node-modules-folders-on-your-machine-and-free-up-hd-space-f3954843aeda