npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

NPM gulp-image task | How to resolve this one?


Someone, please help me with my problem here in my gulp task.

How can I resolve this error occurring in my gulp function:

throw err;

AssertionError [ERR_ASSERTION]: Task function must be specified
at Gulp.set [as _setTask] (C:\Users\Aidynne\node_modules\undertaker\lib\set-task.js:10:3)
at Gulp.task (C:\Users\Aidynne\node_modules\undertaker\lib\task.js:13:8)
at Object. (C:\Users\Aidynne\Desktop\ivory\gulpfile.js:14:6)
at Module._compile (internal/modules/cjs/loader.js:799:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:810:10)
at Module.load (internal/modules/cjs/loader.js:666:32)
at tryModuleLoad (internal/modules/cjs/loader.js:606:12)
at Function.Module._load (internal/modules/cjs/loader.js:598:3)
at Module.require (internal/modules/cjs/loader.js:705:19)
at require (internal/modules/cjs/helpers.js:14:16)

Thanks a lot.