{"action":"created","issue":{"url":"https://api.github.com/repos/yan-foto/electron-reload/issues/33","repository_url":"https://api.github.com/repos/yan-foto/electron-reload","labels_url":"https://api.github.com/repos/yan-foto/electron-reload/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/yan-foto/electron-reload/issues/33/comments","events_url":"https://api.github.com/repos/yan-foto/electron-reload/issues/33/events","html_url":"https://github.com/yan-foto/electron-reload/issues/33","id":229274935,"number":33,"title":"it does not work on osx","user":{"login":"mikes01","id":4107841,"avatar_url":"https://avatars0.githubusercontent.com/u/4107841?v=3","gravatar_id":"","url":"https://api.github.com/users/mikes01","html_url":"https://github.com/mikes01","followers_url":"https://api.github.com/users/mikes01/followers","following_url":"https://api.github.com/users/mikes01/following{/other_user}","gists_url":"https://api.github.com/users/mikes01/gists{/gist_id}","starred_url":"https://api.github.com/users/mikes01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikes01/subscriptions","organizations_url":"https://api.github.com/users/mikes01/orgs","repos_url":"https://api.github.com/users/mikes01/repos","events_url":"https://api.github.com/users/mikes01/events{/privacy}","received_events_url":"https://api.github.com/users/mikes01/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-17T08:29:46Z","updated_at":"2017-05-17T14:38:42Z","closed_at":"2017-05-17T14:38:42Z","body":"Hello,\r\n\r\nIt does not work on osx for me. When I just require the electron:\r\n`require('electron-reload')(__dirname, {\r\n  electron: require('electron')\r\n});`\r\nI get the messsage: \r\n\r\n> Electron could not be found. No hard resets for you! \r\n\r\nSo, I specify the electron path:\r\n`require('electron-reload')(__dirname, {\r\n  electron: path.join(__dirname, 'node_modules', '.bin', 'electron')\r\n});`\r\n\r\nWith this config the app  flashes for a split second, then exits.\r\n\r\nI've prepared demo: https://github.com/mikes01/electron-quick-start\r\n\r\n**OS X El Capitain v10.11.5\r\nelectron v1.6.8\r\nelectron-reload v1.1.0**\r\n\r\ni will appreciate your help with this issue."},"comment":{"url":"https://api.github.com/repos/yan-foto/electron-reload/issues/comments/302111505","html_url":"https://github.com/yan-foto/electron-reload/issues/33#issuecomment-302111505","issue_url":"https://api.github.com/repos/yan-foto/electron-reload/issues/33","id":302111505,"user":{"login":"yan-foto","id":1678441,"avatar_url":"https://avatars2.githubusercontent.com/u/1678441?v=3","gravatar_id":"","url":"https://api.github.com/users/yan-foto","html_url":"https://github.com/yan-foto","followers_url":"https://api.github.com/users/yan-foto/followers","following_url":"https://api.github.com/users/yan-foto/following{/other_user}","gists_url":"https://api.github.com/users/yan-foto/gists{/gist_id}","starred_url":"https://api.github.com/users/yan-foto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yan-foto/subscriptions","organizations_url":"https://api.github.com/users/yan-foto/orgs","repos_url":"https://api.github.com/users/yan-foto/repos","events_url":"https://api.github.com/users/yan-foto/events{/privacy}","received_events_url":"https://api.github.com/users/yan-foto/received_events","type":"User","site_admin":false},"created_at":"2017-05-17T14:38:42Z","updated_at":"2017-05-17T14:38:42Z","body":"Right from the readme:\r\n\r\n> You could also use the (relatively) new electron package, but you should specify the path directly  (no require!):\r\n>\r\n> ```js\r\n> const path = require('path')\r\n> \r\n> require('electron-reload')(__dirname, {\r\n>   electron: path.join(__dirname, 'node_modules', '.bin', 'electron')\r\n> });\r\n> ```"}}
{"actor":{"display_login":"yan-foto"}}