事件:'错误'


🌐 Event: 'error'

当监视文件时发生错误时触发。发生错误的 <fs.FSWatcher> 对象在事件处理程序中不再可用。

🌐 Emitted when an error occurs while watching the file. The errored <fs.FSWatcher> object is no longer usable in the event handler.