A
A
applecode2018-07-08 16:19:56
git
applecode, 2018-07-08 16:19:56

gulp commands not running (bash: gulp: command not found). What is the problem?

Installed git and nodejs. Ran npm i bower, npm i -g gulp, npm init. I wrote down the necessary plugins package.json. Installed using npm i. Created a test gulpfile.js with the following content

var gulp = require('gulp');
gulp.task('hello', function(){
    console.log('Hello Shell');
});

As a result, when executing gulp hello, gulp -v, the error "bash: gulp: command not found"
appears. I set the following environment variables 5b420ee4b0750625490421.png
Gulp itself, as I understand it, should be installed here C:\Program Files\Git\usr\local\node_modules. And he really is there. So what's the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Shatokhin, 2018-07-08
@applecode

npm i -g gulp-cli

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question