I'm using gulp 4. When trying to install bower dependencies using gulp, the bower task never finishes. Both the example below actually install dependencies.
Example 1
var run = require('gulp-run');
gulp.task('bower', function(done) {
run('./node_modules/.bin/bower install', {cwd: './temp'}).exec(function(err){
if (err) throw err;
done();
});
});
This never finishes. It just hangs.
Example 2
var bower = require('gulp-bower');
gulp.task('bower', function() {
return bower({cwd: './temp'});
});
This one throws The following tasks did not complete: bower. Did you forget to signal async completion?
after it completes. But since it throws, I can't continue my gulp.series
.