我在Linux上尝试使用watchify
并不断得到任何人在linux上使用watchify?它不应该自动使用inotify?
Error: Cannot find module 'fsevents' from ~/dir
为什么fsevents
甚至被我的系统考虑?这不是严格的Mac工具吗?如何让节点使用inotify
作为其默认文件监视器而不是fsevents
?具体来说,我希望watchify
在文件更改前后包装文件。为什么是这样?
我一直在使用node-inotify
尝试,但由于某种原因,我仍然得到
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
据this,inotify的应该只是在自动因为我在Linux上踢。
尝试的WebPack&'的WebPack-DEV-server'呢? – hendry
也是如此。要求mac'fsevents' – ddaaggeett