我有以下gulpfile.js,该代码是通过命令行“ gulp消息”执行的:
var gulp = require('gulp');
gulp.task('message', function() {
console.log("HTTP Server Started");
});
我收到以下错误消息:
[14:14:41] Using gulpfile ~\Documents\node\first\gulpfile.js
[14:14:41] Starting 'message'...
HTTP Server Started
[14:14:41] The following tasks did not complete: message
[14:14:41] Did you forget to signal async completion?
我在Windows 10系统上使用gulp 4。这是gulp --version的输出:
[14:15:15] CLI version 0.4.0
[14:15:15] Local version 4.0.0-alpha.2
慕尼黑5688855
RISEBY