Use chokidar (https://github.com/paulmillr/chokidar) instead of native node.js fs.watch for watching directories as fs.watch is inconsistent across platforms according to the official documentation (https://nodejs.org/docs/latest/api/fs.html#fs_caveats)