Fixit #1: When Gulp is giving you the Cannot read property ‘apply’ treatment?

Fixit

Fixits are small posts that provide a straight forward answer for issues that occur during development.

When you’re working on Hybrid apps or Web apps with a tool belt including Grunt it is possible that Gulp is giving you the “TypeError: Cannot read property ‘apply’ of undefined” finger. I’ve experienced this when using a Yeoman generator and Grunt wouldn’t nudge.

Expected result
Grunt functioning like normal (building with grunt / grunt build.

Real outcome
[crayon-65f9232ea423d494162844/] [ad name=”Large Rectangle”]

Fix

Reinstall gulp-cli did fix this for me:
[crayon-65f9232ea4248541219483/] Resources
I found this after Googling around: https://github.com/gulpjs/gulp-cli/issues/31. Although code version 4 – and using npm install -g “gulpjs/gulp-cli#4.0” – isn’t appropriate anymore it led me to try to re-install gulp-cli.