What is causing this “invalid top-level expression” error in my GULP gulpfile.js file?
问题 I get an error after I start gulp. I have taken out all other plugins to find problem: [gulp-sass] source string:1: error: invalid top-level expression gulpfile.js: var gulp = require('gulp'); var sass = require('gulp-sass'); gulp.task('sass', function() { gulp.src('app/assets/sass/styles.sass') .pipe(sass({ errLogToConsole: true })) .pipe(gulp.dest('public_html/assets/css')) }); gulp.task('default', ['sass'], function() { gulp.watch("app/assets/sass/*.sass", ['sass']); }); Windows 7 回答1: If