{"action":"created","issue":{"url":"https://api.github.com/repos/gruntjs/grunt/issues/1459","repository_url":"https://api.github.com/repos/gruntjs/grunt","labels_url":"https://api.github.com/repos/gruntjs/grunt/issues/1459/labels{/name}","comments_url":"https://api.github.com/repos/gruntjs/grunt/issues/1459/comments","events_url":"https://api.github.com/repos/gruntjs/grunt/issues/1459/events","html_url":"https://github.com/gruntjs/grunt/issues/1459","id":132990549,"number":1459,"title":"Incorrect error code when Gruntfile missing ","user":{"login":"paulhayes","id":636239,"avatar_url":"https://avatars.githubusercontent.com/u/636239?v=3","gravatar_id":"","url":"https://api.github.com/users/paulhayes","html_url":"https://github.com/paulhayes","followers_url":"https://api.github.com/users/paulhayes/followers","following_url":"https://api.github.com/users/paulhayes/following{/other_user}","gists_url":"https://api.github.com/users/paulhayes/gists{/gist_id}","starred_url":"https://api.github.com/users/paulhayes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulhayes/subscriptions","organizations_url":"https://api.github.com/users/paulhayes/orgs","repos_url":"https://api.github.com/users/paulhayes/repos","events_url":"https://api.github.com/users/paulhayes/events{/privacy}","received_events_url":"https://api.github.com/users/paulhayes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gruntjs/grunt/labels/bug","name":"bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-11T14:40:19Z","updated_at":"2016-02-16T16:53:23Z","closed_at":null,"body":"http://gruntjs.com/api/exit-codes says missing grunt file should return exit code 2. Possibly only happening in osX, haven't tested elsewhere.\r\n\r\nI ran the following and got exit code 99:\r\n```\r\n$ grunt --no-color --gruntfile [\"web/app/themes/roots/Gruntfile.js\"] build\r\ngrunt-cli: The grunt command line interface. (v0.1.13)\r\n\r\nFatal error: Unable to find local grunt.\r\n\r\nIf you're seeing this message, either a Gruntfile wasn't found or grunt\r\nhasn't been installed locally to your project. For more information about\r\ninstalling and configuring grunt, please see the Getting Started guide:\r\n\r\nhttp://gruntjs.com/getting-started\r\n$ echo $?\r\n99\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/gruntjs/grunt/issues/comments/184766747","html_url":"https://github.com/gruntjs/grunt/issues/1459#issuecomment-184766747","issue_url":"https://api.github.com/repos/gruntjs/grunt/issues/1459","id":184766747,"user":{"login":"jonaldomo","id":166513,"avatar_url":"https://avatars.githubusercontent.com/u/166513?v=3","gravatar_id":"","url":"https://api.github.com/users/jonaldomo","html_url":"https://github.com/jonaldomo","followers_url":"https://api.github.com/users/jonaldomo/followers","following_url":"https://api.github.com/users/jonaldomo/following{/other_user}","gists_url":"https://api.github.com/users/jonaldomo/gists{/gist_id}","starred_url":"https://api.github.com/users/jonaldomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonaldomo/subscriptions","organizations_url":"https://api.github.com/users/jonaldomo/orgs","repos_url":"https://api.github.com/users/jonaldomo/repos","events_url":"https://api.github.com/users/jonaldomo/events{/privacy}","received_events_url":"https://api.github.com/users/jonaldomo/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T16:53:23Z","updated_at":"2016-02-16T16:53:23Z","body":"This error comes from the grunt-cli, here is the code that returns 99.  https://github.com/gruntjs/grunt-cli/blob/64e1b531a1a35d21d628e32b6a6b5521081b1184/bin/grunt#L40\r\n\r\nThe second part of the error message is probably your problem \"grunt\r\nhasn't been installed locally to your project\".  Not that it can't find the Gruntfile.js.\r\n\r\n"}}