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

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)

@AdsonCicilioti
Copy link

Same problem :(

@amoswachanga
Copy link

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
Copy link

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

@mager
Copy link

mager commented Jul 8, 2015

Thanks for the fix @amoswachanga

@amoswachanga
Copy link

Great it helped @mager and @AdsonCicilioti

@AdsonCicilioti
Copy link

👊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants