Example of error as shown below:
$ gulp
assert.js:43
throw new errors.AssertionError(obj);
^
AssertionError [ERR_ASSERTION]: Task function must be specified
Commonly it related to gulp version 4.0. 2 options avaiable to fix it:
- Downgrade your gulp version
- Edit your package.json with:
"gulp": "^3.9.1",
- Remove your node_modules folder
rm -rf node_modules
- And reinstall it by
npm i
- Or, update your working code to 4.0