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 avai
As of December 28th 2018, the following command should work perfectly fine in installing version 4 locally.
npm i -D gulp
I solved the issue by running:
which gulp
rm -rf /usr/local/bin/gulp
npm i -g gulp
npm install gulpjs/gulp.git#4.0 --save-dev
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
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