If I use gulp branch 0.4 within my local project but then run gulp 0.3 (installed globally) then I get an error:
$ gulp
[12:24:51] Using gulpfile ~/src/xxxxx/gulpfile.js
/Users/ibc/.npm-packages/lib/node_modules/gulp/bin/gulp.js:129
gulpInst.start.apply(gulpInst, toRun);
^
TypeError: Cannot call method 'apply' of undefined
at /Users/ibc/.npm-packages/lib/node_modules/gulp/bin/gulp.js:129:20
at process._tickDomainCallback (node.js:463:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
at node.js:906:3
May I know why gulp does not provide a separate module gulp-cli (similar to grunt-cli) whose only purpose is to locate the local gulp executable path (or the global one if not present locally)?
The idea of grunt-cli is to avoid issues as the described above. I consider it extremely useful.
If I use gulp branch 0.4 within my local project but then run
gulp0.3 (installed globally) then I get an error:May I know why gulp does not provide a separate module
gulp-cli(similar togrunt-cli) whose only purpose is to locate the localgulpexecutable path (or the global one if not present locally)?The idea of
grunt-cliis to avoid issues as the described above. I consider it extremely useful.