question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gulp 4 cannot find gulp.parallel | gulp.series

See original GitHub issue

I use gulp 4, and there is an error showing “gulp.parallel is not a function”.

I am here. @mikestreety gulp -v show

CLI version 1.2.1
Local version 3.9.1

This is my gulpfile, I delete some code and these code will cause the same result.

var fs = require('fs');
var _path = require('path');
var gulp = require('gulp')
var newer = require('gulp-newer');
var modify = require('gulp-modify');
var uglify = require('gulp-uglify')
var cleanCSS = require('gulp-clean-css');
var htmlmin = require('gulp-htmlmin');
var imagemin  = require('gulp-imagemin');

gulp.task('default', gulp.parallel(function () {
    console.log('finish')
}))

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
nirazulcommented, Apr 18, 2016

$ npm install --save-dev gulp …will get you 3.9.1

$ npm install gulpjs/gulp.git#4.0 --save-dev …did not work for me (zsh: no matches found), I had to write it in quotes:

$ npm install 'gulpjs/gulp.git#4.0' --save-dev …so you’ll get 4.0.alpha

1reaction
xcatliucommented, Aug 26, 2016

Why don’t publish a 4.0-alpha version in npm?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gulp 4: How to use gulp.series() and gulp.parallel() inside ...
I want to define a Gulp 4 task that is a composition of three functions executed in series. However, I want to define...
Read more >
series()
When no tasks are passed, throws an error with the message, "One or more tasks should be combined using series or parallel".
Read more >
02 - Introduction to Gulp.js series and parallel tasks - Gulp 4
Gulpjs series where I go over the basic content:⦾ intro ⦾ gulp tasks ( series & parallel )⦾ compiling SCSS⦾ cleaning/minifying CSS⦾ ...
Read more >
The new task execution system - gulp.parallel and gulp.series
One of the major changes in Gulp 4 is the new task execution system. In this article, I want to show you what's...
Read more >
A quick guide for switching to gulp 4 | by Jhey Tompkins
The majority are non-breaking. The major breaking change is the introduction of gulp.series and gulp.parallel. For those in camp TL;DR…
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found