我在全局和项目文件下都安装了gulp,但是无法使用gulp命令并返回以下结果

时间:2019-12-08 14:17:00

标签: gulp

$ gulp

assert.js:374     犯错     ^

AssertionError [ERR_ASSERTION]:必须指定任务功能     在Gulp.set [作为_setTask](C:\ Users \ Administrator \ Desktop \ h5musicplayer \ node_modules_undertaker @ 1.2.1 @ undertaker \ lib \ set-task.js:10:3​​)     在Gulp.task(C:\ Users \ Administrator \ Desktop \ h5musicplayer \ node_modules_undertaker @ 1.2.1 @ undertaker \ lib \ task.js:13:8)     在对象。 (C:\ Users \ Administrator \ Desktop \ h5musicplayer \ gulpfile.js:8:6)     在Module._compile(内部/模块/cjs/loader.js:959:30)     在Object.Module._extensions..js(内部/模块/cjs/loader.js:995:10)     在Module.load(internal / modules / cjs / loader.js:815:32)     在Function.Module._load(内部/模块/cjs/loader.js:727:14)     在Module.require(internal / modules / cjs / loader.js:852:19)     在要求时(内部/模块/cjs/helpers.js:74:18)     在执行时(C:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ gulp \ node_modules_gulp-cli @ 2.2.0 @ gulp-cli \ lib \ versioned \ ^ 4.0.0 \ index.js:36:18){   generateMessage:否,   代码:“ ERR_ASSERTION”,   实际:错误,   预期:是的,   运算子:'==' }

0 个答案:

没有答案