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)
Use chokidar (https://github.com/paulmillr/chokidar) instead of native node.js
fs.watchfor watching directories asfs.watchis inconsistent across platforms according to the official documentation (https://nodejs.org/docs/latest/api/fs.html#fs_caveats)