I've been using gulp-watch. The current version of gulp-watch relies on the call gulp.parrallel. This call is only available from gulp 4.
However gulp 4 is not available via the npm repo.
npm info gulp dist-tags
returns: { latest: '3.9.0' }
.
I can see that there is a 4.0 branch within the git repo. But attempting to install it with variations on this command fails: npm install https://github.com/gulpjs/gulp#v4.0.0
.
As of December 28th 2018, the following command should work perfectly fine in installing version 4 locally.
Gulp has removed the 4.0 branch from their GitHub repository, so the previous way of installing using
npm install gulpjs/gulp.git#4.0 --save-dev
no longer works.They state in their README that the correct way to install gulp 4.0 is to run the command:
npm install gulp@next
November 2018 » npm audit says to run:
npm install --save-dev gulp@4.0.0
to install gulp-4, CLI version has to be 1.2.2 which will support gulp 4.0
to install gulp-cli 1.2.2 run
sudo npm install gulp-cli@1.2.2 -g
and to install gulp 4.0 run
npm install 'gulpjs/gulp.git#4.0' --save-dev
when you run gulp -v command
you should get
[11:38:36] CLI version 1.2.2
[11:38:36] Local version 4.0.0-alpha.2
similar issue on GitHub
Detail info is on this blog page: https://demisx.github.io/gulp4/2015/01/15/install-gulp4.html