grep abaikan node_modules

grep -R --exclude-dir=node_modules 'some pattern' /path/to/search
Angry Alligator