码迷,mamicode.com
首页 > Windows程序 > 详细

gulp4.0 存在的错误信息 The following tasks did not complete: default,Did you forget to signal async completion?

时间:2019-01-20 13:40:15      阅读:554      评论:0      收藏:0      [点我收藏+]

标签:async   col   nal   sync   OWIN   follow   方法   syn   signal   

当gulp为如下代码的时候:

//  以下代码会执行在node环境下
const gulp = require( "gulp" );

//  创建一个gulp的任务
gulp.task( "default",function(){
    console.log( "gulp default task" );
} );

运行结果:

The following tasks did not complete: default
Did you forget to signal async completion?

修改方法:

//  以下代码会执行在node环境下
const gulp = require( "gulp" );

//  创建一个gulp的任务
gulp.task( "default",function(done){
    console.log( "gulp default task" );
    done();
} );

 

gulp4.0 存在的错误信息 The following tasks did not complete: default,Did you forget to signal async completion?

标签:async   col   nal   sync   OWIN   follow   方法   syn   signal   

原文地址:https://www.cnblogs.com/NightTiger/p/10294459.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!