{"action":"created","issue":{"url":"https://api.github.com/repos/devongovett/node-wkhtmltopdf/issues/32","labels_url":"https://api.github.com/repos/devongovett/node-wkhtmltopdf/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/devongovett/node-wkhtmltopdf/issues/32/comments","events_url":"https://api.github.com/repos/devongovett/node-wkhtmltopdf/issues/32/events","html_url":"https://github.com/devongovett/node-wkhtmltopdf/issues/32","id":50021046,"number":32,"title":"wkhtmltopdf: command not found","user":{"login":"ABeltramo","id":1122217,"avatar_url":"https://avatars.githubusercontent.com/u/1122217?v=3","gravatar_id":"","url":"https://api.github.com/users/ABeltramo","html_url":"https://github.com/ABeltramo","followers_url":"https://api.github.com/users/ABeltramo/followers","following_url":"https://api.github.com/users/ABeltramo/following{/other_user}","gists_url":"https://api.github.com/users/ABeltramo/gists{/gist_id}","starred_url":"https://api.github.com/users/ABeltramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ABeltramo/subscriptions","organizations_url":"https://api.github.com/users/ABeltramo/orgs","repos_url":"https://api.github.com/users/ABeltramo/repos","events_url":"https://api.github.com/users/ABeltramo/events{/privacy}","received_events_url":"https://api.github.com/users/ABeltramo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-11-25T12:42:40Z","updated_at":"2015-02-05T11:32:42Z","closed_at":null,"body":"I installed on my machine the pkg from the main wkhtmltopdf site. If i run the command from terminal it succesfully generate PDF.\r\nThe problem is that using your wrapper on node result in this error:\r\n```\r\nUncaught node.js Error \r\n\r\nError: /bin/sh: wkhtmltopdf: command not found\r\n    at Socket.<anonymous> (/Users/ale/Downloads/node-webkit-v0.10.5-osx-x64/copia&incolla.app/Contents/Resources/app.nw/node_modules/wkhtmltopdf/index.js:79:17)\r\n    at Socket.g (events.js:196:16)\r\n    at Socket.EventEmitter.emit (events.js:104:17)\r\n    at readableAddChunk (_stream_readable.js:156:16)\r\n    at Socket.Readable.push (_stream_readable.js:123:10)\r\n    at Pipe.onread (net.js:520:20)\r\n```\r\nMac OSX 10.10 Yosemite."},"comment":{"url":"https://api.github.com/repos/devongovett/node-wkhtmltopdf/issues/comments/73032488","html_url":"https://github.com/devongovett/node-wkhtmltopdf/issues/32#issuecomment-73032488","issue_url":"https://api.github.com/repos/devongovett/node-wkhtmltopdf/issues/32","id":73032488,"user":{"login":"mauvm","id":1067696,"avatar_url":"https://avatars.githubusercontent.com/u/1067696?v=3","gravatar_id":"","url":"https://api.github.com/users/mauvm","html_url":"https://github.com/mauvm","followers_url":"https://api.github.com/users/mauvm/followers","following_url":"https://api.github.com/users/mauvm/following{/other_user}","gists_url":"https://api.github.com/users/mauvm/gists{/gist_id}","starred_url":"https://api.github.com/users/mauvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauvm/subscriptions","organizations_url":"https://api.github.com/users/mauvm/orgs","repos_url":"https://api.github.com/users/mauvm/repos","events_url":"https://api.github.com/users/mauvm/events{/privacy}","received_events_url":"https://api.github.com/users/mauvm/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T11:32:42Z","updated_at":"2015-02-05T11:32:42Z","body":"The `wkhtmltopdf` command is executed as a [shell command on non-Windows systems][1]. Make sure the `/user/local/bin` directory is in your $PATH variable. Do this by running:\r\n\r\n```bash\r\n$ sh\r\nsh-3.2$ which wkhtmltopdf    # Or try:\r\nsh-3.2$ echo $PATH\r\nsh-3.2$ exit\r\n```\r\n\r\n[1]: https://github.com/devongovett/node-wkhtmltopdf/blob/master/index.js#L55\r\n[2]: http://fishshell.com/"}}