Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

“Task function must be specified at Gulp.set” error when running gulp

It seems to be related to the Gulp V4, there’s two options:

  • Update your code to V4 (Article related )

OR

  • Downgrade gulp version

To downgrade you need to update your package.json with

"gulp": "^3.9.1",

And then remove node_module folder and reinstall npm packages

rm -rf node_modules
npm install

Related Posts:

  1. Everytime I run gulp anything, I get a assertion error. – Task function must be specified
  2. How to fix “ReferenceError: primordials is not defined” in Node.js
  3. Node update a specific package
  4. Expected linebreaks to be ‘LF’ but found ‘CRLF’ linebreak-style
  5. SyntaxError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’ – Gulp
  6. ‘gulp’ is not recognized as an internal or external command
  7. No gulpfile found
  8. GulpUglifyError:Unable to minify JavaScript
  9. npm install multiple package names
  10. events.js: 141 throw er; // Unhandled ‘error’ event
  11. Error: Couldn’t find preset “es2015” relative to directory “/Users/username”
  12. Local WordPress installation is stripping ‘wp-admin’ from URL on WordPress admin dashboard
Categories gulp Tags gulp
Can’t find mysqladmin on Mac OSX 10.6.8
Check if checkbox is checked with jQuery

Leave a Comment Cancel reply

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress