Ignore 'node_modules' by default.

Resolved 💬 8 comments Opened Feb 27, 2025 by enricoros Closed Feb 28, 2025

Understood that you could disallow node_modules via claude config add ignorePatterns node_modules.

However a large majority of frontend developers will try out Claude Code without knowing about this configuration parameter and will be disappointed.

(somehow /node_modules is also in my .gitignore but wasn't considered)

The result is that the first 1000 files in the prompt are node modules, and thus Claude becomes very ineffective and confused.

Would highly suggest to exclude node_modules by default.

View original on GitHub ↗

This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗