Created
          November 26, 2021 11:34 
        
      - 
      
 - 
        
Save mercuriete/b3ebec2bce9b8e6b870b4c955166e9a7 to your computer and use it in GitHub Desktop.  
    delete all node_modules
  
        
  
    
      This file contains hidden or 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/bash | |
| # Please give all credit to this stackoverflow post | |
| # https://stackoverflow.com/questions/42950501/delete-node-modules-folder-recursively-from-a-specified-path-using-command-line | |
| find . -name 'node_modules' -type d -prune -exec rm -rf '{}' + | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment