I first tried gulp on a Windows Server 2012 virtual machine. I am usually a Mac user, so I'm a little new to Windows and Powershell for such tools. I installed Node.js and npm (and nothing more). I created the following basic Gulpfile to compile my Sass:
Gulpfile.js
var gulp = require('gulp'), sass = require('gulp-ruby-sass'); gulp.task('styles', function() { return gulp.src('Content/sass_new/application.scss') .pipe(sass({ style: 'expanded', })) .pipe(gulp.dest('Content/css')) }); gulp.task('watch', function() { gulp.watch('Content/sass_new/*', ['styles']); }) gulp.task('default', ['styles']);
On Windows Powershell, I run the gulp command and output the following:
[10:02:57] Using gulpfile C:\[path to]\gulpfile.js [10:02:57] Starting 'styles'... [10:02:57] gulp-ruby-sass: 'sass' is not recognized as an internal or external command, operable program or batch file. [10:02:57] Finished 'styles' after 316 ms [10:02:57] Starting 'default'... [10:02:57] Finished 'default' after 15 μs
Am I missing something? Do I need to install Ruby or Sass? I decided to do this, I will need a Ruby command line, and PowerShell will not have access to it. Any guidance appreciated!
source share