Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw Error when used gulp.watch() #224

Closed
MillerRen opened this issue Aug 17, 2014 · 6 comments
Closed

Throw Error when used gulp.watch() #224

MillerRen opened this issue Aug 17, 2014 · 6 comments

Comments

@MillerRen
Copy link

@MillerRen MillerRen commented Aug 17, 2014

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)

@MillerRen MillerRen closed this Aug 18, 2014
@AdsonCicilioti

This comment has been minimized.

Copy link

@AdsonCicilioti AdsonCicilioti commented Mar 17, 2015

Same problem :(

@amoswachanga

This comment has been minimized.

Copy link

@amoswachanga amoswachanga commented May 2, 2015

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

@AdsonCicilioti

This comment has been minimized.

Copy link

@AdsonCicilioti AdsonCicilioti commented May 2, 2015

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

@mager

This comment has been minimized.

Copy link

@mager mager commented Jul 8, 2015

Thanks for the fix @amoswachanga

@amoswachanga

This comment has been minimized.

Copy link

@amoswachanga amoswachanga commented Jul 9, 2015

Great it helped @mager and @AdsonCicilioti

@AdsonCicilioti

This comment has been minimized.

Copy link

@AdsonCicilioti AdsonCicilioti commented Jul 9, 2015

👊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.