I'm on Linux trying to use watchify
and keep getting
Error: Cannot find module 'fsevents' from ~/dir
Why is fsevents
even being considered by my system? Isn't it strictly a Mac tool? How do I get node to use inotify
as its default file monitor instead of fsevents
? Specifically, I want watchify
to wrap files before and after file changes. Why is this?
I've tried using node-inotify
but for some reason I'm still getting
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14
According to this, inotify should just kick in automatically since I'm on Linux.