A
A
Andrey Ivanov2018-10-22 09:47:16
gulp.js
Andrey Ivanov, 2018-10-22 09:47:16

How to install Gulp4?

How to install Gulp4?
$ npm rm -g gulp (removed global gulp)
$ npm install -g gulp-cli (installed global cli)
$ gulp -v
CLI version 2.0.1
$ npm uninstall gulp --save-dev
$ npm install 'gulpjs/gulp. git#4.0' --save-dev
After this
PS message D:\Site layout\_start_project\starting template gulp4> npm uninstall gulp --save-dev
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents)
: "} (current: {"os":
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>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita-Fast, 2018-10-22
@newdecline

https://www.npmjs.com/package/gulp4
5bcd7391b2c00928847283.png

K
Ksenia, 2020-01-12
@ksenya-7

Good afternoon!
After installation, when checking
> gulp -v
CLI version: 2.2.0
Local version: Unknown
Shows that version 2 for some reason ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question