frankhale / electron-with-express

A simple app that demonstrates spawning an Express app from Electron
MIT License
662 stars 145 forks source link

Steps to run on OSX #10

Closed baticodes closed 6 years ago

baticodes commented 6 years ago

The following steps worked for me:

frankhale commented 6 years ago

Thanks for the information. I'll add it to the README soon!

frankhale commented 6 years ago

I've added your instructions to the README. Thank you!!!

baticodes commented 6 years ago

Glad to have been helpful :)

prayagupa commented 6 years ago

not sure if its related to nodejs or not but, my app shows a wheel spinning on macos

screen shot 2018-05-18 at 2 46 41 pm

I did remove window specific code with just node as I have installed node in my machine

env

$ node --version
v9.3.0

$ npm --version
5.6.0

--inspect not helpful either

$ node --inspect start-electron.js 
Debugger listening on ws://127.0.0.1:9229/b0298f3b-4c24-4004-9044-f0e47062c993
For help see https://nodejs.org/en/docs/inspector

Here is my cloned code -

package.json https://github.com/duwamish-os/cheech-marin.js/blob/master/package.json#L12

and index.html - https://github.com/duwamish-os/cheech-marin.js/blob/master/index.html#L69

frankhale commented 6 years ago

Press the F1 key to see the server log while the spinner is spinning to see if there is any useful error message. Basically what is happening is that the server is not completing it's start up so when the code polls to see if the express app is available it's failing so always spinning.

baticodes commented 6 years ago

I would say that your issue could be related to that line in your package.json:

"start": "node start-electron.js"

Maybe with the previous line I think you are calling to your global node instance instead of your local copy? Try this instead:

"start": "./node start-electron.js"