When I pipe my compiled css into gulp.dest(folder) it will fail with an error:
events.js:72
throw er; // Unhandled 'error' event
^
Error: EPERM, chmod 'css/screen.css'
This is because screen.css already exits and only gets overriden - however the user running gulp isn't the owner of the file.
This is a bug since according to the documentation chmod gets applied to new folders only:
options.mode - Octal permission string specifying mode for any folders that need to be created for output folder.
Code:
var gulp = require('gulp');
var sass = require('gulp-sass');
gulp.task('default', function() {
gulp.src(sassUri + '**/*.{scss,sass}')
.pipe(sass())
.pipe(gulp.dest('css'));
});
PS: If this isn't a bug but a feature, how can I turn this off (or handle it properly)?
When I pipe my compiled css into gulp.dest(folder) it will fail with an error:
This is because
screen.cssalready exits and only gets overriden - however the user running gulp isn't the owner of the file.This is a bug since according to the documentation chmod gets applied to new folders only:
options.mode - Octal permission string specifying mode for any folders that need to be created for output folder.Code:
PS: If this isn't a bug but a feature, how can I turn this off (or handle it properly)?