Как установить Gulp4 ?
$ npm rm -g gulp (удалил глобальный галп)
$ npm install -g gulp-cli (установил глобально cli)
$ gulp -v
CLI version 2.0.1
$ npm uninstall gulp --save-dev
$ npm install 'gulpjs/gulp.git#4.0' --save-dev
После этого сообщение
PS D:\Site layout\_start_project\starting template gulp4> npm uninstall gulp --save-dev
npm WARN newdecline@1.0.0 No description
npm WARN newdecline@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
removed 90 packages in 12.234s
PS D:\Site layout\_start_project\starting template gulp4> npm install 'gulpjs/gulp.git#4.0' --save-dev
npm ERR! code 1
npm ERR! Command failed: C:\Program Files\Git\cmd\git.EXE checkout 4.0
npm ERR! error: pathspec '4.0' did not match any file(s) known to git.
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\newdecline\AppData\Roaming\npm-cache\_logs\2018-10-22T06_42_29_374Z-debug.log
PS D:\Site layout\_start_project\starting template gulp4> gulp -v
[11:42:45] CLI version 2.0.1
PS D:\Site layout\_start_project\starting template gulp4>