I get the following error when trying to use gulp-babel:
Error: Couldn\'t find preset \"es2015\" relative to directory \"/Users/username\"
I encountered the same issue and it was because I had a .babelrc file in the root of my directory.
To fix this add babelrc: false inside the babel options:
var babel = require('gulp-babel');
gulp.task('babel', function() {
return gulp.src('./app/main.js')
.pipe(babel({
babelrc: false,
presets: ['babel-preset-es2015']
}))
.pipe(gulp.dest('dist'));
});