Good day.

Trying to compile SASS (more precisely, SCSS) with the Gulp scheduler. I use Node.JS tools for Visual Studio Community 2015.

Gulpfile.js looks like this:

var gulp = require("gulp"); var sass = require("gulp-sass"); gulp.task('sass', function () return gulp.src('css/main.scss') .pipe(sass().on('error', sass.logError)) .pipe(gulp.dest('css/main.css')); }); 

Accordingly, in the css directory are the files main.css and main.scss

When launching (more precisely, not even when starting the task, but when opening the dispatcher itself), the task runner explorer ("task execution manager") writes:

 не удалось выполнить загрузку.. cmd.exe /c gulp --tasks-simple fs.js:808 return binding.readdir(pathModule._makeLong(path)); ^ Error: ENOENT: no such file or directory, scandir 'C:\Users\К\Documents\Visual Studio 2015\Projects\Node_Gulp\Node_Gulp\node_modules\gulp-sass\node_modules\node-sass\vendor' 

gulp-sass in the project is installed

    1 answer 1

    bit of shamanism, see here https://github.com/sass/node-sass/issues/1579 for more details

    solution: npm rebuild node-sass (not gulp-sass, namely node-sass, one of dependencies)