Use fs.watchFile instead of fs.watch for cross-OS compatibility