gulp command not found – error after installing gulp

I’ve installed gulp both globally and locally using

npm install gulp
npm install gulp -g
npm install gulp-util
npm install gulp-util -g

When try to run gulp i get

'gulp' is not recognized as an internal or external command, operable program or batch file.

Running npm list gulp (or -g), I gulp@3.7.0 with the location of either my global or local gulp installation.

I’ve tried running node gulpfile.js pointed to my gulpfile, and it runs without error, and of course, it starts with require('gulp').

Any suggestions on getting gulp working on Windows(8.1)?

41 Answers
41

You forgot to install the gulp-cli package:

npm install -g gulp-cli

Then you can run the command “gulp” from the command line.

Leave a Comment