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

Gulp watch error : ENOSPC #1

Open
Jiedara opened this issue Oct 30, 2017 · 0 comments
Open

Gulp watch error : ENOSPC #1

Jiedara opened this issue Oct 30, 2017 · 0 comments
Labels

Comments

@Jiedara
Copy link
Contributor

Jiedara commented Oct 30, 2017

This is not a gulp-oyana specific issue, but it can be mentioned somewhere.

Due to the large set of file manipulated by the watch function, apparently, an overload is possible for Unix based system.

The error show up like this :

Error: watch /var/.../resources/scss/ ENOSPC
    at exports._errnoException (util.js:870:11)
    at FSWatcher.start (fs.js:1234:19)
    at Object.fs.watch (fs.js:1262:11)
    at Gaze._watchDir (/var/www/html/qusto/referrals/node_modules/gaze/lib/gaze.js:289:30)
    at /var/www/html/qusto/referrals/node_modules/gaze/lib/gaze.js:358:10
    at iterate (/var/www/html/qusto/referrals/node_modules/gaze/lib/helper.js:52:5)
    at Object.forEachSeries (/var/www/html/qusto/referrals/node_modules/gaze/lib/helper.js:66:3)
    at Gaze._initWatched (/var/www/html/qusto/referrals/node_modules/gaze/lib/gaze.js:354:10)
    at Gaze.add (/var/www/html/qusto/referrals/node_modules/gaze/lib/gaze.js:177:8)
    at new Gaze (/var/www/html/qusto/referrals/node_modules/gaze/lib/gaze.js:74:10)

It can be solved by running this command :
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

SOURCE

@Jiedara Jiedara added the info label Oct 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant