A
A
Alex_872019-05-03 00:37:52
npm
Alex_87, 2019-05-03 00:37:52

Can't install gulp 4.0.0. Gives an error message?

Good evening guys! Please help, I don't know what to do next... I'm trying to install 4 gulp("gulp": "^4.0.0",) with npm i [email protected] –D. Google replies that the reason lies in the fact that the gulp-cli is installed on the wrong version (1.2.2 is needed, and when I use the npm i -g gulp-cli command, version 2.2.0 is installed) WHAT should I do, please tell me! Here is the error code:
5ccb630e188ed389277710.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2019-05-03
@Alex_87

Install gulp like in the docks
npm install --save-dev gulp
This is enough to install everything. Of infa https://gulpjs.com/docs/en/getting-started/quick-start
Or if somewhere you have managed to rewrite everything from 0.
# Uninstall previous Gulp installation and related packages, if any
$ npm rm gulp -g
$ npm rm gulp-cli -g
$ cd [your-project-dir/]
$ npm rm gulp --save-dev
$ npm rm gulp -- save
$ npm rm gulp --save-optional
$ npm cache clean
# Install the latest Gulp CLI tools globally
$ npm install gulpjs/gulp-cli -g
# Install Gulp 4 into your project as dev dependency
$ npm install gulp --save- dev
# Check the versions installed. Make sure your versions are not lower than shown.
$ gulp -v

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question