question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ignore node_modules when watching files

See original GitHub issue

To potentially prevent issues such as https://github.com/cypress-io/cypress/issues/369, only watch the user’s source files and ignore node_modules (and maybe other directories? https://github.com/novemberborn/ignore-by-default/blob/master/index.js).

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
brian-manncommented, Mar 9, 2017

Fixed in 0.19.1.

2reactions
brian-manncommented, Feb 21, 2017

Let’s add a configuration option to cypress.json to allow users to configure other directories to ignore.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exclude node_modules folder with .gitignore file
The node_modules/ folder is the folder where all packages required by your JavaScript project are downloaded and installed. This folder is ...
Read more >
node modules - Git - Ignore node_modules folder everywhere
Add node_modules/ or node_modules to the .gitignore file to ignore all directories called node_modules in the current folder and any subfolders like the ......
Read more >
Git ignore node modules - Simple Solution and Common ...
Add the following line to your .gitignore file node_modules. It will match the node_modules directory anywhere in your git repository.
Read more >
Have watcher ignore node_modules & jspm_modules changes?
I think I've hit my file watchers limit. Looking through the errors I noticed it is trying to watch the files in my...
Read more >
How to ignore the node_modules folder in Git? - Tim Mousk
1. Create a .gitignore file with this entry. . · 2. Remove the node_modules folder from the Git index using the git rm...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found