Gulp - The term 'gulp' is not recognized as the name of a cmdlet

In my case it was that I had to install gulp-cli by command npm -g install gulp-cli (also I had to install gulp localy in project)


I know this is a bit late to answer to question but who knows someone else might need it too. All you need to do is install gulp globally: npm install gulp -g and it will work just fine


Since gulp is a dev dependency, it should not be installed globally,instead run inside of your project npm install gulp --save-dev and to run gulp run npx gulp which will run your gulpfile. enter image description here