{"action":"created","issue":{"url":"https://api.github.com/repos/gulpjs/gulp-cli/issues/9","repository_url":"https://api.github.com/repos/gulpjs/gulp-cli","labels_url":"https://api.github.com/repos/gulpjs/gulp-cli/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/gulpjs/gulp-cli/issues/9/comments","events_url":"https://api.github.com/repos/gulpjs/gulp-cli/issues/9/events","html_url":"https://github.com/gulpjs/gulp-cli/issues/9","id":54203140,"number":9,"title":"gulp-cli fails if local gulp is 4.0","user":{"login":"ibc","id":16191,"avatar_url":"https://avatars.githubusercontent.com/u/16191?v=3","gravatar_id":"","url":"https://api.github.com/users/ibc","html_url":"https://github.com/ibc","followers_url":"https://api.github.com/users/ibc/followers","following_url":"https://api.github.com/users/ibc/following{/other_user}","gists_url":"https://api.github.com/users/ibc/gists{/gist_id}","starred_url":"https://api.github.com/users/ibc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibc/subscriptions","organizations_url":"https://api.github.com/users/ibc/orgs","repos_url":"https://api.github.com/users/ibc/repos","events_url":"https://api.github.com/users/ibc/events{/privacy}","received_events_url":"https://api.github.com/users/ibc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2015-01-13T15:00:42Z","updated_at":"2016-11-11T06:13:13Z","closed_at":"2015-01-13T15:05:51Z","body":"Within my project's `package.json` I have:\n\n```\njson\n\"dependencies\": {\n  \"gulp\": \"git+https://github.com/gulpjs/gulp.git#4.0\"\n}\n```\n\nIf I globally install stable `gulp` (3.X) and run `gulp` it fails (known issue, ok). But if I globally install `gulp-cli` it also fails:\n\n```\nbash\n$ gulp\n[15:59:34] Using gulpfile ~/src/XXX/gulpfile.js\n\n/Users/xxxxxx/.npm-packages/lib/node_modules/gulp-cli/index.js:133\n    gulpInst.start.apply(gulpInst, toRun);\n                   ^\nTypeError: Cannot call method 'apply' of undefined\n    at /Users/xxxxxx/.npm-packages/lib/node_modules/gulp-cli/index.js:133:20\n    at process._tickDomainCallback (node.js:463:13)\n    at Function.Module.runMain (module.js:499:11)\n    at startup (node.js:119:16)\n    at node.js:906:3\n```\n\nI fail to understand the purpose of `gulp-cli` if it fails in this scenario. Do I miss something?\n"},"comment":{"url":"https://api.github.com/repos/gulpjs/gulp-cli/issues/comments/259888997","html_url":"https://github.com/gulpjs/gulp-cli/issues/9#issuecomment-259888997","issue_url":"https://api.github.com/repos/gulpjs/gulp-cli/issues/9","id":259888997,"user":{"login":"rajathms","id":13037329,"avatar_url":"https://avatars.githubusercontent.com/u/13037329?v=3","gravatar_id":"","url":"https://api.github.com/users/rajathms","html_url":"https://github.com/rajathms","followers_url":"https://api.github.com/users/rajathms/followers","following_url":"https://api.github.com/users/rajathms/following{/other_user}","gists_url":"https://api.github.com/users/rajathms/gists{/gist_id}","starred_url":"https://api.github.com/users/rajathms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajathms/subscriptions","organizations_url":"https://api.github.com/users/rajathms/orgs","repos_url":"https://api.github.com/users/rajathms/repos","events_url":"https://api.github.com/users/rajathms/events{/privacy}","received_events_url":"https://api.github.com/users/rajathms/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T06:13:13Z","updated_at":"2016-11-11T06:13:13Z","body":"@xzegga yep I resolved it , it's working.\r\n\r\nBring back your **CLI version to 1.2.2**  it will support gulp 4 .\r\n\r\nwhen run `gulp -v`\r\n\r\nyou should get \r\n**[11:38:36] CLI version 1.2.2\r\n[11:38:36] Local version 4.0.0-alpha.2**\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"rajathms"}}