This one is a simple and handy trick when you want to copy your directories without node_modules folder.
Enter this command in your terminal.
robocopy SOURCE DEST /mir /xd node_modules
Hi!
For OSX (and i guess other unix)
rsync -av -progress --exclude="node_modules" sourceToCopy destination
This helped me massively, thank you :)
Excellent, thanks