Closed liudonghua123 closed 5 years ago
Hi, I have the same problem on Win 10 64bit.
I just started using electron, and electron-forge. To reproduce, just start from scratch on a new machine and follow the electron-forge page. After running those commands, there are a bunch of error messages and the app window never appears.
Separately, I was able to get the regular electron demo to work from their man page:
What version of Electron Forge is this?
If you are using node 11, then you should use electron 3.0.8 or newer. see more details on https://github.com/electron/electron/pull/15470
If that's the issue, I'm inclined to close this as not a bug in Electron Forge.
@malept, @vic2r I tested it and confirmed what I guess.
Ok, thank you guys for resolving this issue for me. I am still learning.
I am on node version 11.x. I thought I was on electron 3.0.8. When I install electron-forge and look the json package.json (there are many nested version under folders called "node_modules" it always says 2.0.8. I've tried googling, and several commands to update electron inside my test projects. I'm sure it's something simple, can either of you point me in the right direction? How do I "use electron version 3.0.8 or newer"?
Thanks again to both of you.
Assuming you're using Electron Forge v5, update the dependency of electron-prebuilt-compile
in the devDependencies
section of your package.json
to 3.0.8
and then run npm update
.
If you need more assistance, you can ask in one of the Electron community forums.
Please describe your issue:
I followed the instruction on https://github.com/electron-userland/electron-forge and start a demo project
my-app
, but when I runnpm start
, it didn't open the electron. It did stop on "electron-squirrel-startup processing squirrel command .
".*Console output when you run
electron-forge
with the environment variable `DEBUG=electron-forge:`. (Instructions on how to do so here). Please include the stack trace if one exists.**What command line arguments are you passing?
What does your
config.forge
data inpackage.json
look like?Please provide either a failing minimal testcase (with a link to the code) or detailed steps to reproduce your problem. Using
electron-forge init
is a good starting point, if that is not the source of your problem.