yan-foto/electron-reload

it does not work on osx

Closed this issue · 6 comments

Hello,

It does not work on osx for me. When I just require the electron:
require('electron-reload')(__dirname, { electron: require('electron') });
I get the messsage:

Electron could not be found. No hard resets for you!

So, I specify the electron path:
require('electron-reload')(__dirname, { electron: path.join(__dirname, 'node_modules', '.bin', 'electron') });

With this config the app flashes for a split second, then exits.

I've prepared demo: https://github.com/mikes01/electron-quick-start

OS X El Capitain v10.11.5
electron v1.6.8
electron-reload v1.1.0

i will appreciate your help with this issue.

Reminds me of #25, but is not the same! I just checked it out on mac and it worked out fine. Seems to me that it is a setup problem and not a systematic bug. Please consult stackoverflow.

I'll let this issue stay open, until we can pinpoint the problem.

I just tried it on macOS and it does work for me.

It also work for me.

I've found the reason why the reload didn't work for me. I run the app by this command:
electron main.js
then the app flashes for a split second and exits.
When i run the app by:
electron .
It works as expected, the app runs and reloads on change.

npm i electron -D worked for me