question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gulpInst.start.apply(gulpInst, toRun); TypeError: Cannot read property 'apply' of undefined

See original GitHub issue

I have the following entry in my package.json file “gulp”: “github:gulpjs/gulp#4.0”

i ran npm install -g “gulpjs/gulp-cli#4.0” and it gives me and error fatal: ambiguous argument '4.0': unknown revision or path not in the working tree.

Here is the error I get when I run gulp **gulp [02:49:31] Using gulpfile ~/Documents/XXXX/gulpfile.js /usr/local/lib/node_modules/gulp/bin/gulp.js:129 gulpInst.start.apply(gulpInst, toRun); ^

TypeError: Cannot read property ‘apply’ of undefined at /usr/local/lib/node_modules/gulp/bin/gulp.js:129:19 at _combinedTickCallback (internal/process/next_tick.js:67:7) at process._tickCallback (internal/process/next_tick.js:98:9) at Function.Module.runMain (module.js:577:11) at startup (node.js:160:18) at node.js:449:3**

Also The Output for gulp -v gulp -v [02:55:57] CLI version 3.9.1 [02:55:57] Local version 4.0.0-alpha.2

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

135reactions
phatedcommented, Jun 24, 2016

Please read the docs: https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md

This is not a support forum.

60reactions
postorcommented, Aug 16, 2016

use local gulp-cli can make it run node ./node_modules/gulp/bin/gulp.js

Read more comments on GitHub >

github_iconTop Results From Across the Web

cannot read property 'apply' of undefined gulp - Stack Overflow
I get below error everytime i run npm install gulp -g --save. TypeError: Cannot ...
Read more >
"Cannot read property apply of undefined" while running gulp ...
I am trying to do a sample webpart. While running any of the below commands, it is showing the same error as shown...
Read more >
Gulp Build fails when setting up for developement - GitLab
... gulpInst.start.apply(gulpInst, toRun); ^ TypeError: Cannot read property 'apply' of undefined at /usr/lib/nodejs/gulp/bin/gulp.js:132:20 ...
Read more >
generator-ng-factory v0.8.7 - npm.io
A generator for AngularJS applications, components and libraries leveraging ... gulpInst.start.apply(gulpInst, toRun); ^ TypeError: Cannot read property ...
Read more >
[#LPS-124885] Unable to upgrade theme to 7.3 - Liferay Issues
... gulpInst.start.apply(gulpInst, toRun); ^ TypeError: Cannot read property 'apply' of undefined at /usr/lib/nodejs/gulp/bin/gulp.js:132:20 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found