Created
May 22, 2016 10:27
-
-
Save beeva-manueldepaz/99ea360c87f7dd83cf9d90a35ed3b4ff to your computer and use it in GitHub Desktop.
Script to clean all npm & bower current instalations in a folder recursively
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# https://coderwall.com/p/guqrca/remove-all-node_module-folders-recursively | |
# $sudo mv /path/to/killAllNodeModules.sh /usr/local/bin/killAllNodeModules | |
# $sudo chmod a+x /usr/local/bin/killAllNodeModules | |
find . -name "node_modules" -exec rm -rf '{}' + | |
find . -name "bower_components" -exec rm -rf '{}' + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment