I am trying to run gulp -ruby-sass on Windows.
I already installed Ruby and Sass: $ gem install sass
My gulp.task looks like this:
gulp.task('styles', function() { return sass('src/scss/**/*.scss') .on('error', sass.logError) .pipe(gulp.dest('css')); });
When I connect to the root directory of my project and run $ gulp styles , I get the following:
[22:54:52] Using gulpfile c:\wamp\www\wordpress\ wp-content\themes\bootscores\gulpfile.js [22:54:52] Starting 'styles'... [22:54:52] 'sass' is not recognized as an internal or external command, operable program or batch file. Error in plugin 'gulp-ruby-sass' Message: Gem undefined is not installed. [22:54:52] Finished 'styles' after 89 ms
I searched for a solution to this problem for about two hours and still have not found what helped me.
source share