No gulpfile found
Solution 1:
In my case, in order to solve the error, 'no gulpfile found' I wrongly called the configuration file as gulp.js
instead of gulpfile.js
.
So just make sure you didn't misspell the file.
Another possible reason why you might get this error is when you are running the gulp command in the wrong directory. Make sure the gulpfile.js is not inside another folder but within the project folder.
Solution 2:
This error means that gulp doesn't find gulpfile.js to follow the instructions. To solve this error we need to add gulpfile.js to our directory root by running the command.
Create gulpfile.js and then add
var gulp = require('gulp');
gulp.task('default', function () {
console.log('Hello Gulp!')
});