Answer the question
In order to leave comments, you need to log in
How to fix GULP error - too many open files - EMFILE: too many open files?
Tasks in gulp compile many less files, if you run tasks separately, no errors occur, but I would like to combine all tasks and run them with one command, but I get an error EMFILE: too many open files,
OC: windows 7 64
NODEJS, GIT, GULP, NPM - latest versions.
And there are 24 such times:
gulp.task('style_1:build', function (){
gulp.src(path.src.dirstyle + 'style_1.less').pipe(plumber()).pipe(less()).pipe(cssmin()).pipe(gulp.dest(path.build.css));
});
gulp.task('style_2:build', function () {
gulp.src(path.src.dirstyle + 'style_2.less').pipe(plumber()).pipe(less()).pipe(cssmin()).pipe(gulp.dest(path.build.css));
});
gulp.task('style', [
'style_1:build',
'style_2:build',
...........
'style_24:build'
]);
............
[17:10:13] Starting 'style_24:build'...
[17:10:13] Finished 'style_24:build' after 2.33 ms
[17:10:13] Starting 'style'...
[17:10:13] Finished 'style' after 8.6 μs
[17:10:19] Plumber found unhandled error:
Error in plugin 'gulp-less'
Message:
EMFILE: too many open files, open '......page.less' in file ......build.less line no. 124
Answer the question
In order to leave comments, you need to log in
Attach a file with tasks, so you can’t understand it right off the bat.
I personally have a lot of files on win 10 through npm + gulp compiles - and there is no such error
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question