cannot read property 'apply' of undefined gulp cannot read property 'apply' of undefined gulp angularjs angularjs

cannot read property 'apply' of undefined gulp


Try to reinstall gulp-cli :

npm install -g gulp-cli


npm install -g gulp-cli

And important: after running that command, open a new terminal so it'll take effect.


Upgrade to 4.0 like this:

npm install --save-dev github:gulpjs/gulp#4.0