re: npkill - The solution to deleting node_modules easily, with style VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Just a simple question: wouldn't a basic find/rm bash command work just fine, without the need of an extra globally installed tool? Or does this t...
 

On Mac just:

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

would do the same I think.

 

Except for folder selection, on basically every unix-enabled system (including windows through WSL, or cygwin).

But this one also removes files that may be called node_modules.

A better one would be to have find . -type d -name node_modules -exec rm -rf {} +.

code of conduct - report abuse