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 is undefined

See original GitHub issue
~/src/foo $ gulp
[10:33:45] Using gulpfile ~/src/foo/gulpfile.js
/Users/ibc/.npm-packages/lib/node_modules/gulp-cli/index.js:133
    gulpInst.start.apply(gulpInst, toRun);
                  ^
TypeError: Cannot read property 'apply' of undefined
    at /Users/ibc/.npm-packages/lib/node_modules/gulp-cli/index.js:133:19
    at process._tickDomainCallback (node.js:381:11)
    at Function.Module.runMain (module.js:503:11)
    at startup (node.js:129:16)
    at node.js:814:3
~/src/foo $ gulp -v
[10:33:51] CLI version 0.1.3
[10:33:51] Local version 4.0.0-alpha.1

It also happens with latest gulp-cli 0.3.0 (gulp-cli is globally installed).

NOTE: Using local gulp 4.0.0-alpha.1 and global gulp-cli 0.1.3 worked fine until I upgraded gulp-cli to 0.3.0. Then the error above happended, but worse, once I reverted to 0.1.3 the problem still happens, so it may be due to an updated dependency within gulp-cli (just wondering).

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

13reactions
heikkicommented, Sep 1, 2015

npm install -g "gulpjs/gulp-cli#4.0" ?

11reactions
noelyahancommented, Nov 12, 2016

Issue is now they don’t have a branch called “gulpjs/gulp-cli#4.0” now they only maintain the master. It can be solved by simply removing the old gulp-cli globally npm remove -g gulp-cli and reinstall it npm install -g gulp-cli. It will install the latest release tag which is 1.2.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot `gulp install`, results in `Cannot read property 'apply' of ...
This error means that gulpInst.start is undefined . It's impossible to say anything specific without seeing your particular configuration ...
Read more >
Gulp Build fails when setting up for developement - GitLab
When following the Developement Workspace Setup section from contributing.adoc, after running yarn, gulp build fails.
Read more >
TypeError: Cannot read property 'apply' of undefined - 51CTO博客
TypeError: Cannot read property 'apply' of undefined,1、错误描述Administrator@USER-0GUONPPBHKMINGW/g/HBuilderXWork/Vue$npminstall--save-devgulpnpmWARNroll.
Read more >
Creating Custom Registries - gulp.js
The gulp instance passed as the only argument ( gulpInst ) can be used to ... registry to resolve and return, or undefined...
Read more >
command not found: gulp - theUnknown - Medium
... /versions/node/v9.8.0/lib/node_modules/gulp/bin/gulp.js:129gulpInst.start.apply(gulpInst, toRun);^TypeError: Cannot read property 'apply' of undefinedat ...
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