bmustiata / fast-live-reload

A live reload that works with all the possible browsers.
18 stars 5 forks source link

Crash on initiate (too many open files) #11

Closed krazyjakee closed 5 years ago

krazyjakee commented 5 years ago

fast-live-reload -s docs -e 'npm run jsdocs' src/libs

1. Will notify the changes for clients on port 9001
2. and will serve the content from docs on port 9000
3. and will monitor and execute when files change in subfolders:
   a: .        -> npm run jsdocs
   b: src/libs    
2018-10-01 02:29 node[44423] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2018-10-01 02:29 node[44423] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2018-10-01 02:29 node[44423] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
events.js:167
      throw er; // Unhandled 'error' event
      ^

Error: EMFILE: too many open files, watch

Why is a: . in that list? I believe that could be the issue. It should only use my specified src/libs folder.

krazyjakee commented 5 years ago

Ok, it's because I need to put the path before the -e flag.

fast-live-reload -s docs src/libs -e 'npm run jsdocs'