T
T
tory_kuzya2017-07-19 12:30:14
Node.js
tory_kuzya, 2017-07-19 12:30:14

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

When executing the command
C:\OpenServer\domains\localhost\projectgulp>gulp

an error appears and nothing appears in the build folder (everything should be built here, it is written in the gulpfile.js file)
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)

Maybe a version conflict between Node and Gulp? What to do? How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
monochromer, 2017-07-19
@tory_kuzya

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 question

Ask a Question

731 491 924 answers to any question