{"action":"closed","issue":{"url":"https://api.github.com/repos/olahol/viewdiff/issues/1","labels_url":"https://api.github.com/repos/olahol/viewdiff/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/olahol/viewdiff/issues/1/comments","events_url":"https://api.github.com/repos/olahol/viewdiff/issues/1/events","html_url":"https://github.com/olahol/viewdiff/issues/1","id":112111272,"number":1,"title":"Cannot find module 'electron-prebuilt'","user":{"login":"Nevon","id":83586,"avatar_url":"https://avatars.githubusercontent.com/u/83586?v=3","gravatar_id":"","url":"https://api.github.com/users/Nevon","html_url":"https://github.com/Nevon","followers_url":"https://api.github.com/users/Nevon/followers","following_url":"https://api.github.com/users/Nevon/following{/other_user}","gists_url":"https://api.github.com/users/Nevon/gists{/gist_id}","starred_url":"https://api.github.com/users/Nevon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nevon/subscriptions","organizations_url":"https://api.github.com/users/Nevon/orgs","repos_url":"https://api.github.com/users/Nevon/repos","events_url":"https://api.github.com/users/Nevon/events{/privacy}","received_events_url":"https://api.github.com/users/Nevon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-19T09:49:58Z","updated_at":"2015-10-19T09:59:06Z","closed_at":"2015-10-19T09:59:05Z","body":"Because `electron-prebuild` is listed as a `devDependency`, `viewdiff` fails to run when installed globally.\r\n\r\n![screen shot 2015-10-19 at 11 48 58](https://cloud.githubusercontent.com/assets/83586/10574617/75f72374-7657-11e5-80e1-eb4abb9909c1.png)\r\n\r\n```\r\n➜  my-repo git:(master) git diff | viewdiff\r\nmodule.js:338\r\n    throw err;\r\n    ^\r\n\r\nError: Cannot find module 'electron-prebuilt'\r\n    at Function.Module._resolveFilename (module.js:336:15)\r\n    at Function.Module._load (module.js:286:25)\r\n    at Module.require (module.js:365:17)\r\n    at require (module.js:384:17)\r\n    at Object.<anonymous> (/usr/local/lib/node_modules/viewdiff/cli.js:3:16)\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    at Function.Module.runMain (module.js:475:10)\r\n```"}}