{"action":"created","issue":{"url":"https://api.github.com/repos/wzpan/hexo-renderer-pandoc/issues/5","labels_url":"https://api.github.com/repos/wzpan/hexo-renderer-pandoc/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/wzpan/hexo-renderer-pandoc/issues/5/comments","events_url":"https://api.github.com/repos/wzpan/hexo-renderer-pandoc/issues/5/events","html_url":"https://github.com/wzpan/hexo-renderer-pandoc/issues/5","id":120616865,"number":5,"title":"Error: spawn pandoc ENOENT","user":{"login":"Edenharder","id":6672134,"avatar_url":"https://avatars.githubusercontent.com/u/6672134?v=3","gravatar_id":"","url":"https://api.github.com/users/Edenharder","html_url":"https://github.com/Edenharder","followers_url":"https://api.github.com/users/Edenharder/followers","following_url":"https://api.github.com/users/Edenharder/following{/other_user}","gists_url":"https://api.github.com/users/Edenharder/gists{/gist_id}","starred_url":"https://api.github.com/users/Edenharder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Edenharder/subscriptions","organizations_url":"https://api.github.com/users/Edenharder/orgs","repos_url":"https://api.github.com/users/Edenharder/repos","events_url":"https://api.github.com/users/Edenharder/events{/privacy}","received_events_url":"https://api.github.com/users/Edenharder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-06T07:54:59Z","updated_at":"2015-12-07T02:58:41Z","closed_at":null,"body":"Hi, I install Pandoc with cabal and then add its path to system path. There is no problem when I run Pandoc in terminal. But when I run hexo g, there is some error:\r\n\r\n```\r\nevents.js:141\r\n      throw er; // Unhandled 'error' event\r\n      ^\r\n\r\nError: spawn pandoc ENOENT\r\n    at exports._errnoException (util.js:837:11)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)\r\n    at onErrorNT (internal/child_process.js:344:16)\r\n    at doNTCallback2 (node.js:429:9)\r\n    at process._tickCallback (node.js:343:17)\r\n```"},"comment":{"url":"https://api.github.com/repos/wzpan/hexo-renderer-pandoc/issues/comments/162396015","html_url":"https://github.com/wzpan/hexo-renderer-pandoc/issues/5#issuecomment-162396015","issue_url":"https://api.github.com/repos/wzpan/hexo-renderer-pandoc/issues/5","id":162396015,"user":{"login":"Edenharder","id":6672134,"avatar_url":"https://avatars.githubusercontent.com/u/6672134?v=3","gravatar_id":"","url":"https://api.github.com/users/Edenharder","html_url":"https://github.com/Edenharder","followers_url":"https://api.github.com/users/Edenharder/followers","following_url":"https://api.github.com/users/Edenharder/following{/other_user}","gists_url":"https://api.github.com/users/Edenharder/gists{/gist_id}","starred_url":"https://api.github.com/users/Edenharder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Edenharder/subscriptions","organizations_url":"https://api.github.com/users/Edenharder/orgs","repos_url":"https://api.github.com/users/Edenharder/repos","events_url":"https://api.github.com/users/Edenharder/events{/privacy}","received_events_url":"https://api.github.com/users/Edenharder/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T02:58:41Z","updated_at":"2015-12-07T02:58:41Z","body":"I install `node-pdc` and run the following script with no error:\r\n```\r\nvar pdc = require('pdc');\r\n\r\n// optional, if pandoc is not in PATH\r\nvar path = require('path');\r\npdc.path = path.resolve(process.env.HOME, '.cabal/bin/pandoc');\r\n\r\npdc('# Heading', 'markdown', 'html', function(err, result) {\r\n  if (err)\r\n    throw err;\r\n\r\n  console.log(result);\r\n});\r\n```\r\nBut if I do not add the '.cabal/bin/pandoc' to `pdc.path`, the error says that\r\n```\r\ninternal/child_process.js:298\r\n    throw errnoException(err, 'spawn');\r\n    ^\r\n\r\nError: spawn EACCES\r\n    at exports._errnoException (util.js:837:11)\r\n    at ChildProcess.spawn (internal/child_process.js:298:11)\r\n    at exports.spawn (child_process.js:339:9)\r\n    at pdcStream (/Users/Eden/node_modules/pdc/pdc.js:21:14)\r\n    at pdc (/Users/Eden/node_modules/pdc/pdc.js:33:14)\r\n    at Object.<anonymous> (/Users/Eden/test.js:7:1)\r\n    at Module._compile (module.js:434:26)\r\n    at Object.Module._extensions..js (module.js:452:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n```\r\nHope that the above information is  helpful."}}