Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

rawnato's avatar

gulp watch error

I'm getting this error when running gulp watch

running gulp works fine

gulp watch
[15:20:03] Using gulpfile /home/www/tmp/gulpfile.js
[15:20:03] Starting 'watch'...
[15:20:03] 'watch' errored after 7.05 ms
[15:20:03] Error: watch ENOSPC
    at errnoException (fs.js:1031:11)
    at FSWatcher.start (fs.js:1063:11)
    at Object.fs.watch (fs.js:1088:11)
    at Gaze._watchDir (/home/www/tmp/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:289:30)
    at /home/www/tmp/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:358:10
    at iterate (/home/www/tmp/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/helper.js:52:5)
    at Object.forEachSeries (/home/www/tmp/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/helper.js:66:3)
    at Gaze._initWatched (/home/www/tmp/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:354:10)
    at Gaze.add (/home/www/tmp/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:177:8)
    at new Gaze (/home/www/tmp/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:74:10)

any idea?

0 likes
3 replies
rawnato's avatar

gulpfile.js

var elixir = require('laravel-elixir');

elixir(function (mix) {

    mix.sass('app.scss');

    mix.scripts([
        'jquery/dist/jquery.js',
        'bootstrap/dist/js/bootstrap.js'
    ], 'public/js/vendor.js', './resources/assets/vendor/');

    mix.scripts([
        '**/*.js'
    ], 'public/js/app.js', './resources/assets/scripts/');

    mix.version([
        "css/app.css",
        "js/vendor.js",
        "js/app.js"
    ]);

});
1 like
pascalb's avatar

Did you ever found what was the problem?

1 like

Please or to participate in this conversation.