Answer the question
In order to leave comments, you need to log in
Gulp not working (Node + npm + Gulp + PhpStorm) Version conflict?
Installed Node + npm + Gulp.
C:\OpenServer\domains\localhost\projectgulp>node -v
v4.4.5
C:\OpenServer\domains\localhost\projectgulp>npm -v
2.15.5
C:\OpenServer\domains\localhost\projectgulp>gulp -v
[12 :18:58] CLI version 3.9.1
[12:18:58] Local version 4.0.0-alpha.2
C:\OpenServer\domains\localhost\projectgulp>gulp
assert.js:90
throw new assert.AssertionError({
^
AssertionError: Task function must be specified
at Gulp.set [as _setTask] (C:\OpenServer\domains\localhost\projectgulp\node_modules\undertaker\lib\set-task. js:10:3)
at Gulp.task (C:\OpenServer\domains\localhost\projectgulp\node_modules\undertaker\lib\task.js:13:8)
at Object.(C:\OpenServer\domains\localhost\projectgulp \gulpfile.js:171:6)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343 :32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Liftoff.handleArguments (C:\Users\ShipGo\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:116:3)
Answer the question
In order to leave comments, you need to log in
Looks like Gulp version 4 is installed locally , while task code is written for Gulp <= 3
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question