css - gulp-ruby-sass - 'sass' is not recognized as an internal or external command, operable program or batch file -


i'm trying run gulp-ruby-sass on windows.

i've installed ruby , sass that: $ gem install sass

my gulp.task looks this:

gulp.task('styles', function() {    return sass('src/scss/**/*.scss')      .on('error', sass.logerror)      .pipe(gulp.dest('css')); }); 

when cd root directory of project , run $ gulp styles, this:

[22:54:52] using gulpfile c:\wamp\www\wordpress\ wp-content\themes\bootscores\gulpfile.js [22:54:52] starting 'styles'... [22:54:52] 'sass' not recognized internal or external command, operable program or batch file. error in plugin 'gulp-ruby-sass' message:     gem undefined not installed. [22:54:52] finished 'styles' after 89 ms 

i've been searching solution problem 2 hours , still haven't found 1 me.

i've found solution.

i had manually add path ruby bin folder in control panel > system > advanced > environment variables. here added new variable named path path ruby bin folder (c:\ruby22-x64\bin).

then restarted node.js command prompt , got output looking for.

thank you, cdf, answer , effort! though answered question myself, hope other people too.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -