{"action":"created","issue":{"url":"https://api.github.com/repos/voceconnect/grunt-composer/issues/21","labels_url":"https://api.github.com/repos/voceconnect/grunt-composer/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/voceconnect/grunt-composer/issues/21/comments","events_url":"https://api.github.com/repos/voceconnect/grunt-composer/issues/21/events","html_url":"https://github.com/voceconnect/grunt-composer/issues/21","id":44303728,"number":21,"title":"composer:install won't work if using the composer config","user":{"login":"ttback","id":607140,"avatar_url":"https://avatars.githubusercontent.com/u/607140?v=3","gravatar_id":"","url":"https://api.github.com/users/ttback","html_url":"https://github.com/ttback","followers_url":"https://api.github.com/users/ttback/followers","following_url":"https://api.github.com/users/ttback/following{/other_user}","gists_url":"https://api.github.com/users/ttback/gists{/gist_id}","starred_url":"https://api.github.com/users/ttback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttback/subscriptions","organizations_url":"https://api.github.com/users/ttback/orgs","repos_url":"https://api.github.com/users/ttback/repos","events_url":"https://api.github.com/users/ttback/events{/privacy}","received_events_url":"https://api.github.com/users/ttback/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-09-29T15:03:50Z","updated_at":"2015-03-27T01:16:29Z","closed_at":null,"body":"If I want to define a custom location for composer.json and composer cli, I won't be able to just call grunt composer.install after having the custom config in grunt file: It will end up with `[InvalidArgumentException]\r\n  Command \"undefined\" is not defined.`\r\n\r\n````\r\ncomposer : {\r\n        options : {\r\n            cwd: 'packages/build',\r\n            composerLocation: '/usr/bin/composer'\r\n        },\r\n        install: {\r\n        }\r\n    }\r\n````"},"comment":{"url":"https://api.github.com/repos/voceconnect/grunt-composer/issues/comments/86782788","html_url":"https://github.com/voceconnect/grunt-composer/issues/21#issuecomment-86782788","issue_url":"https://api.github.com/repos/voceconnect/grunt-composer/issues/21","id":86782788,"user":{"login":"ngocphamm","id":395123,"avatar_url":"https://avatars.githubusercontent.com/u/395123?v=3","gravatar_id":"","url":"https://api.github.com/users/ngocphamm","html_url":"https://github.com/ngocphamm","followers_url":"https://api.github.com/users/ngocphamm/followers","following_url":"https://api.github.com/users/ngocphamm/following{/other_user}","gists_url":"https://api.github.com/users/ngocphamm/gists{/gist_id}","starred_url":"https://api.github.com/users/ngocphamm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngocphamm/subscriptions","organizations_url":"https://api.github.com/users/ngocphamm/orgs","repos_url":"https://api.github.com/users/ngocphamm/repos","events_url":"https://api.github.com/users/ngocphamm/events{/privacy}","received_events_url":"https://api.github.com/users/ngocphamm/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T01:16:29Z","updated_at":"2015-03-27T01:16:29Z","body":"Have you configured the path for `composer` @phjun?\r\n\r\nThis is what I got\r\n```\r\ncomposer: {\r\n            options: {\r\n                usePhp: true,\r\n                phpArgs: {},\r\n                flags: ['no-dev'],\r\n                cwd: 'releases/tmp',\r\n                composerLocation: '/usr/local/bin/composer'\r\n            }\r\n        }\r\n```"}}