为什么gulp.watch或fs.watch不能在Windows上的Ubuntu上的Bash上工作?

为什么gulp.watch或fs.watch不能在Windows上的Ubuntu上的Bash上工作?,windows,bash,gulp,gulp-watch,windows-subsystem-for-linux,Windows,Bash,Gulp,Gulp Watch,Windows Subsystem For Linux,在Windows上的Ubuntu上的Bash上,像这样的吞咽任务 gulp.task('default', function() { gulp.watch('./', function() {console.log('change!')}); }); 或者直接从节点调用fs.watch node -e "require('fs').watch('./')" 两种方法都失败了,原因如下: Error: watch ./ EPERM at exports._errnoExcept

在Windows上的Ubuntu上的Bash上,像这样的吞咽任务

gulp.task('default', function() {
    gulp.watch('./', function() {console.log('change!')});
});
或者直接从节点调用
fs.watch

node -e "require('fs').watch('./')"
两种方法都失败了,原因如下:

Error: watch ./ EPERM
    at exports._errnoException (util.js:1012:11)
    at FSWatcher.start (fs.js:1429:19)
    at Object.fs.watch (fs.js:1456:11)
    at [eval]:1:15
    at ContextifyScript.Script.runInThisContext (vm.js:25:33)
    at Object.exports.runInThisContext (vm.js:77:17)
    at Object.<anonymous> ([eval]-wrapper:6:22)
    at Module._compile (module.js:541:32)
    at bootstrap_node.js:315:29
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
错误:监视。/EPERM
在导出时。\u errnoException(util.js:1012:11)
在FSWatcher.start(fs.js:1429:19)
在Object.fs.watch(fs.js:1456:11)
在[评估]:1:15
在ContextifyScript.Script.runInThisContext(vm.js:25:33)
在Object.exports.runInThisContext(vm.js:77:17)
反对。([eval]-包装:6:22)
在模块处编译(Module.js:541:32)
在bootstrap_node.js:315:29
at_combinedTickCallback(内部/流程/下一步勾选js:67:7)

如何在Windows上的Ubuntu上的Bash下使用
gulp.watch

目前Windows上的Ubuntu上的Bash不支持像inotify这样的文件系统监视程序。你可以在网上投票支持这样的功能

这方面的进一步讨论


编辑:看起来这个版本已经在开发中修复,并将于2017年初向公众发布。

这个版本已经发布了吗?