Enviado em 04/01/2017 - 11:54h
Estou tentando usar o gulp para assitir e compilar arquivos sass mas esta dando o seguinte erro no terminal
[13:51:59] Using gulpfile /mnt/c/lamp/www/Portfolio/html/gulpfile.js [13:51:59] Starting 'watch'... [13:51:59] 'watch' errored after 19 ms [13:51:59] Error: watch EPERM at errnoException (fs.js:1024:11) at FSWatcher.start (fs.js:1056:11) at Object.fs.watch (fs.js:1081:11) at Gaze._watchDir (/mnt/c/lamp/www/Portfolio/html/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:289:30) at /mnt/c/lamp/www/Portfolio/html/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:358:10 at iterate (/mnt/c/lamp/www/Portfolio/html/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/helper.js:52:5) at Object.forEachSeries (/mnt/c/lamp/www/Portfolio/html/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/helper.js:66:3) at Gaze._initWatched (/mnt/c/lamp/www/Portfolio/html/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:354:10) at Gaze.add (/mnt/c/lamp/www/Portfolio/html/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:177:8) at new Gaze (/mnt/c/lamp/www/Portfolio/html/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:74:10)
const gulp = require('gulp');
const sass = require('gulp-ruby-sass');
gulp.task('sass', function(){
sass('sass/**/*.sass')
.on('error', sass.logError)
.pipe(gulp.dest('css/'));
});
gulp.task('watch', function() {
gulp.watch('sass/**/*.sass', ['sass']);
});