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:
- Created 8 years ago
- Reactions:1
- Comments:10 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
npm install -g "gulpjs/gulp-cli#4.0"
?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 itnpm install -g gulp-cli
. It will install the latest release tag which is1.2.2