Answer the question
In order to leave comments, you need to log in
Why does gulp give a bunch of errors in phpstorm when installing gulp?
I myself am only studying galp, but I found an old example that I did a year ago according to instructions from the web studio. Installing gulp via phpstorm and then everything was installed and "tasks" were launched, I remember that for sure.
I even installed the version of node js with which I tried then, I thought this was the case)
The bottom line is that there are 2 files ready:
https://jsfiddle.net/0ojpjoju/ - package.json
https://jsfiddle.net/30ek18yy/ - gulpfile.js
So, as per the instructions:
1. I open the directory with the site in phpstorm
2. I drop these files (package.json and gulpfile.js) into the root of the site
3. In the terminal (phpstorm command line) I type the commands:
- npm install -g gulp to install Gulp
- npm install to install the necessary modules (modules are specified in the package.json file)
And when I entered npm install -g gulp , I got a bunch of errors at the end of the installation and nothing worked in the end, and then I tried npm install -g gulp-cli and for some reason everything was installed, but there were also all sorts of strange WARs, like: prntscr.com/ityz5b
Why were there only errors with npm install -g gulp ?
Answer the question
In order to leave comments, you need to log in
Update node.js
Update npm
Check dependencies in package.json. Perhaps half of the packages are no longer there, and the second is deprecated.
I completely forgot - you chose the path of monkey coding, and this is a very bad path. Understand how node + npm + gulp works - it's not difficult at all. A couple of hours of time and gulp will turn into a powerful tool in your hands, and not be a guessing ball.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question