If you’d like to clean your system by deleting all node_modules
folders (and saving tons of disk space), you can type:
find . -name "node_modules" -exec rm -rf '{}' +
It also works well with fd:
fd node_modules -x rm -rf '{}' +
If you’d like to clean your system by deleting all node_modules folders (and saving tons of disk space), you can type: find . -name …
Last modified:Tags that this post has been filed under.
If you’d like to clean your system by deleting all node_modules
folders (and saving tons of disk space), you can type:
find . -name "node_modules" -exec rm -rf '{}' +
It also works well with fd:
fd node_modules -x rm -rf '{}' +