D
D
Damir Gabdrakhimov2017-02-19 12:00:27
npm
Damir Gabdrakhimov, 2017-02-19 12:00:27

What is the difference between gulp and gulp-cli?

Hello everyone, I'm confused, plz tell me the difference between gulp and gulp-cli?
What do you need to put on a clean computer at the beginning, what is local and what is global?
Ato is set differently in different lessons, somewhere they put only gulp, somewhere gulp-cli
It's just for me to make websites.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Konstantin Velichko, 2017-02-22
@Zoxon

Previously, there was one version of gulp that needed to be installed globally and locally.
The local version is used in gulpfile.js and the global version is used to run in the console.
Basically, it still works.
But starting from version 4 of gulp (which is not yet released but everyone uses it), you need to install gulp-cli.
The documentation recommends installing gulp-cli.
And before that, remove the global version of gulp
. The separation was due to compatibility issues between the global and local versions. So follow the documentation.

I
iBird Rose, 2017-02-19
@iiiBird

gulpjs.com
globally you need to install gulp-cli
here it is explained in detail why stackoverflow.com/questions/35571679/what-does-gul...

S
sergey, 2017-02-19
@zorro76

gulp-cli (gulp-command-line-interface) is just a way to run gulp-task from the
gulp console, that's all :), but you need to install both gulp and gulp-cli

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question