Gulp Chmod error after trying to overwrite file

I am trying to overwrite a file on a Mac file server using:

gulp.dest('DESTINATIONPATH')

Mistake:

Error: EACCES, chmod 'FILEPATH'
   at Error (native)

The file path returns the path to the file that I want to overwrite.

I already tried gulp -chmod, but since this only applies to the source file that I actually want to copy, it does not affect the file I want to overwrite.

As the creator of the file I want to overwrite, it works from my Mac. But when my colleagues try to rewrite, they get an error.

+4
source share
1 answer

What about the destination pipeline?

var gulp = require ('gulp'); var chmod = require ('gulp -chmod');

gulp.task('default', function () {
    return gulp.src('FILEPATH').pipe(chmod(755)).pipe(gulp.dest('DESTINATIONPATH'));
});
0

Source: https://habr.com/ru/post/1625144/


All Articles