T
T
tonybeat2016-04-16 13:32:21
JavaScript
tonybeat, 2016-04-16 13:32:21

Why is gulp not installed?

Installed node Checked node and
npm installed _ according to the instructions .. as far as I remember, he should pull the GET files ....... But he writes to me: joxi.ru/D2PQZJKudz8G4A then he created the file, I enter gulp and he writes to me: joxi.ru/vAWZxbXSkQLJ42 What is the problem?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
F
Fetur, 2016-04-16
@tonybeat

In your case, gulp is not a standalone program, but just a module that will be included in this folder when tasks are performed.
Before installing any modules to the node, you need to run the command in the right folder
. The result will be the package.json file

{
  "name": "gulp-learn",
  "version": "1.0.0",
  "description": "Изучаем gulp",
  "main": "index.js",
  "dependencies": {},
  "devDependencies": {
    "gulp": "^3.9.1" #Здесь уже установлен gulp
  },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "никто",
  "license": "ISC"
}

Under the line devDependencies are the modules that you have installed.
After that, we already install the modules via npm install --save-dev name_program
In general, I recommend Screencast on gulp 4
Everything is explained on the shelves.

Q
quramolt, 2016-04-16
@quramolt

I may not have understood anything at all. But you also have a gulpfile there, and the default task from gulpfile started and ended successfully. So gulp is installed.
What did you expect to see?

Y
Yurii777, 2017-08-03
@Yurii777

I can't install gulp, I get an error, what's the problem?:
C:\Users\Yuri>npm install gulp -g
npm ERR! C:\Users\Yuri\AppData\Roaming\npm-cache\_cacache is not a legal HTTP he
ader value
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Yuri\AppData\Roaming\npm-cache\_logs\2017-08-03T19_03_36_4
01Z-debug.log

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question