Read the statement by Michael Teeuw here.
Electron failed to install correctly
-
@spikeboybebop did you try this?
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
-
So this doesn’t seem very clear. Ive deleted it and try to start magic mirror and I get a black screen. Ive tried to redo the installing of the MM program and nothing changes and no new electron file.
Ive tried a bunch of different commands for the electron issue from other post. can you be more specific about what I need to install after getting rid of electron?
also forgot running raspberry pi 3 and the most current OS that is fully up to date.
-
@spikeboybebop remove the directory shown in the error and then run
npm install
in the magicmirror directory -
@spikeboybebop Hi, maybe my solution posted here may help you: https://forum.magicmirror.builders/topic/2659/black-blank-screen/11
The main problem (AFAIK) is the need to install and activate a newer version of node.js, as the installation of electron fails with V 6.x.
The automatic installer only tests on node.js V5.x, so V6.x seems to be fine, but you need node.js V7.x, at least.
Regards,
HerrB92 -
@HerrB92 Hm, I just reinstalled stretch on a blank SD and then installed MM using the usual one-liner. Installer updated node to 6.x as usual. Works like a charm.
pi@mirror:~/MagicMirror $ node -v
v6.11.2Regards,
michaelb -
@michaelb42 Mmmh, good to know. Maybe something has been fixed in node.js V6.x or the ZIP package, which was the actual problem on installing electron (and from there it went further down).
The indicator was that in the electron folder no path.txt file was created (which triggers the above error message).
It worked like a charm with V7.x (I even tested it from Raspian scratch). Unfortunately, I have no idea, why the installation result differs that much… ;-)
Regards,
HerrB -
Got it to work! I think updating the node is what worked as it was still in version 6. when I did npm install afterwords it added the electron file. I could have sworn I did that before and it didn’t work so maybe it was on my end or the updated node made the difference.
MM seems to work except for the weather part which initially just showed a thermostat but now is completely missing, everything else is working. shouldn’t be too difficult to figure out that issuer.
Thanks for all the help and speedy response!
-
@spikeboybebop said in Electron failed to install correctly:
MM seems to work except for the weather
Weather won’t work without an API key. See the README for that module for instructions on where to go to acquire said API key. Then, enter the API key in the appropriate place in the config entry for that module.