Seva
Seva

Reputation: 685

What's wrong with Gulp?

could please somebody tell me, what is wrong with Gulp?

gulp.task('watch', function () {
    gulp.watch('./scss/**/*', ['scss']);
    gulp.src('/')
        .pipe(webserver({
            fallback: 'index.html',
            livereload: true,
            directoryListing: {
                enable: true,
                path: '/'
            },
            open: false,
        }));
});

When running gulp watch, get

Error: EACCES: permission denied, scandir '/tmp/KSOutOfProcessFetcher.0.ppfIhqX0vjaTSb8AJYobDV7Cu68='
at Error (native)

What's wrong? Thanks.

Upvotes: 1

Views: 304

Answers (1)

b-m-f
b-m-f

Reputation: 1328

It seems you dont have permissions to scan the folder youre specifying.

Try the following

gulp.task('watch', function () {
  gulp.watch('./scss/**/*', ['scss']);
  gulp.src('./')
      .pipe(webserver({
          fallback: 'index.html',
          livereload: true,
          directoryListing: {
            enable: true,
            path: './'
        },
        open: false,
    }));
});

The root / of the file system is replaced with ./, the relative current folder.

Upvotes: 2

Related Questions