electron-react-tutorial icon indicating copy to clipboard operation
electron-react-tutorial copied to clipboard

start command fails on windows

Open guivho opened this issue 8 years ago • 1 comments

the start command in package.json

 "start": "./node_modules/electron-prebuilt/dist/Electron.app/Contents/MacOS/Electron .",

fails on windows. I replaced it with

"start": "electron .",

to get it working on windows.

guivho avatar Sep 22 '16 19:09 guivho

maybe both start commands could be present like in

"startOsx": "./node_modules/electron-prebuilt/dist/Electron.app/Contents/MacOS/Electron .",
"startWin": "electron .",

and then the user would have to enter npm startOsx or npm startWin

guivho avatar Sep 22 '16 19:09 guivho