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
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 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