I installed gulp globally and also under the project file, but failed to use the gulp command and returned the following results

喜夏-厌秋 提交于 2019-12-20 07:41:35

问题


$ gulp

assert.js:374 throw err; ^

AssertionError [ERR_ASSERTION]: Task function must be specified at Gulp.set [as _setTask] (C:\Users\Administrator\Desktop\h5musicplayer\node_modules_undertaker@1.2.1@undertaker\lib\set-task.js:10:3) at Gulp.task (C:\Users\Administrator\Desktop\h5musicplayer\node_modules_undertaker@1.2.1@undertaker\lib\task.js:13:8) at Object. (C:\Users\Administrator\Desktop\h5musicplayer\gulpfile.js:8:6) at Module._compile (internal/modules/cjs/loader.js:959:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10) at Module.load (internal/modules/cjs/loader.js:815:32) at Function.Module._load (internal/modules/cjs/loader.js:727:14) at Module.require (internal/modules/cjs/loader.js:852:19) at require (internal/modules/cjs/helpers.js:74:18) at execute (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) { generatedMessage: false, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==' }

来源:https://stackoverflow.com/questions/59236283/i-installed-gulp-globally-and-also-under-the-project-file-but-failed-to-use-the

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!