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
Post a Comment