Search code examples
gulpgulp-watchbrowser-sync

gulp + browser-sync - why gulp errors on removing directory from app?


In a simple gulp + browser-sync project here, all file add/delete/change are working correctly, but when I delete a directory from app gulp/browser-sync throws an error like below:

events.js:72 throw er; // Unhandled 'error' event ^ Error: watch EPERM at errnoException (fs.js:1030:11) at FSEvent.FSWatcher._handle.onchange (fs.js:1048:26)

I am not sure where to look for possible problems. If someone can point me to correct direction.


Solution

  • The problem here was an outdated version of BrowserSync.

    Updating to the latest version will solve this issue.