我在 Linux 上尝试使用watchify并不断获得
Error: Cannot find module 'fsevents' from ~/dir
为什么fsevents甚至被我的系统考虑?它不是严格意义上的 Mac 工具吗?如何让 nodeinotify用作其默认文件监视器而不是fsevents?具体来说,我想watchify在文件更改之前和之后包装文件。为什么是这样?
我试过使用node-inotify 但由于某种原因我仍然得到
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14
据此,由于我在 Linux 上,inotify 应该会自动启动。