在Linux上递归Node.js fs.watch

jpl*_*s93 5 linux node.js

https://nodejs.org/api/fs.html#fs_caveats表示,fs.watch(filename[, options][, listener])递归选项仅适用于OS X和Windows.

那么,怎样才能在Linux上实现呢?

Ser*_*huk 4

使用chokidar在此线程 中找到答案