https://garden.io logo
#🌱|help-and-getting-started
Cannot get garden to exclude node_modules folder from devMode
# 🌱|help-and-getting-started
b

bored-grass-81679

12/19/2022, 5:34 PM
Here's a snippet from my helm module configuration:
Copy code
devMode:
  sync:
    - source: .
      target: /app
      exclude: [.vscode, .github, .husky, "node_modules", node_modules]
      mode: one-way-safe
the container module is in the root folder of a remote source repository. The node modules folder is in the root of that same repository. I get the following error in the container logs: System limit for number of file watchers reached The error then references many paths from the node_modules folder.
**Update**: I came across a Github issue where excluding the folder from the project garden file was suggested. That did not work for me either. As a workaround I simply increased the limit of file watchers on our GKE nodes.
q

quaint-dress-831

12/21/2022, 12:40 PM
Can you try and set an exclude rule at the project module level and at the devMode level?
E.g.
node_modules/**/*
in https://docs.garden.io/reference/project-config#modules.exclude and under devMode
b

bored-grass-81679

12/29/2022, 11:20 AM
Thanks for answering! I will make the changes and see if it works.