docsify-cli icon indicating copy to clipboard operation
docsify-cli copied to clipboard

`serve` command try to watch node_modules

Open dekelyi opened this issue 7 years ago • 3 comments

the serve command try to watch all the files in the serving directory, including the node_modules, what results in ENOSPC error on linux when trying to watch too many files. Source for the bug: facebook/jest#3254

exclude the node_modules directory when watching files.

dekelyi avatar Mar 22 '18 07:03 dekelyi

Hi,

This is a problem indeed. It prevents from running docsify in many container-based platform, for instance.

chikamichi avatar Sep 07 '18 06:09 chikamichi

seems like there is a small attempt to try and ignore those files: https://github.com/docsifyjs/docsify-cli/blob/master/lib/commands/serve.js#L56

I am wondering where it is going wrong

jonoirwinrsa avatar May 27 '19 09:05 jonoirwinrsa

I'm not sure how the API works, but maybe changing it to **/node_modules/ will work

dekelyi avatar May 30 '19 07:05 dekelyi