Browser-sync: Throw Error when used gulp.watch()

Created on 17 Aug 2014  路  6Comments  路  Source: BrowserSync/browser-sync

events.js:72
throw er; // Unhandled 'error' event
^
Error: watch ENOSPC
at errnoException (fs.js:1024:11)
at FSWatcher.start (fs.js:1056:11)
at Object.fs.watch (fs.js:1081:11)
at Gaze._watchDir (/home/xxx/xxx/tools/gulp/node_modules/browser-sync/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:289:30)

Most helpful comment

If on Ubuntu, running the following command might solve the problem:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

Reference:
http://stackoverflow.com/questions/16748737/grunt-watch-error-waiting-fatal-error-watch-enospc

All 6 comments

Same problem :(

If on Ubuntu, running the following command might solve the problem:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

Reference:
http://stackoverflow.com/questions/16748737/grunt-watch-error-waiting-fatal-error-watch-enospc

Yes @amoswachanga . I'm using this solution and work fine now. Thx!

Thanks for the fix @amoswachanga

Great it helped @mager and @AdsonCicilioti

:facepunch:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

codeofsumit picture codeofsumit  路  3Comments

ngryman picture ngryman  路  3Comments

pensierinmusica picture pensierinmusica  路  4Comments

hgl picture hgl  路  3Comments

Zver64 picture Zver64  路  3Comments