gulp watch terminates immediately
问题 I have a very minimal gulpfile as follows, with a watch task registered: var gulp = require("gulp"); var jshint = require("gulp-jshint"); gulp.task("lint", function() { gulp.src("app/assets/**/*.js") .pipe(jshint()) .pipe(jshint.reporter("default")); }); gulp.task('watch', function() { gulp.watch("app/assets/**/*.js", ["lint"]); }); I cannot get the watch task to run continuously. As soon as I run gulp watch, it terminates immediately. I've cleared my npm cache, reinstalled dependencies etc,