2016-08-12 7 views
2

Windows에서 우분투의 Bash에서 이와 같은 꿀꺽 꿀꺽한 작업;gulp.watch 또는 fs.watch가 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) 

는 어떻게 Windows에서 우분투에 배쉬에서 gulp.watch을 사용할 수 있습니다 ?

답변

2

현재 Windows의 Ubuntu에서 Bash는 inotify와 같은 파일 시스템 감시자를 지원하지 않습니다. 이러한 기능은 the project's uservoice에 투표 할 수 있습니다. 이 github issue

편집에

또한 토론 :이 지금 개발에 수정되었습니다 및

+1

2017이 빌드가 아직 출시되었습니다 언젠가 초기에 일반에 공개되도록 설정되어 같은데? –