Read the statement by Michael Teeuw here.
Node.js Compile Version Mis-Matches?
-
@pillbug22 do
cd ~/MagicMirror npm install electron-rebuild node_modules/.bin/electron-rebuild
-
@sdetweil : are you sure of this ?
install and execute electron rebuild inside main MM core !? -
@Bugsounet sure, it will find what it needs to rebuild
-
and scan … ALL modules …
-
@Bugsounet so, it will do it quickly… go get some coffee… everything not done in 2 seconds! lol
-
lol
so the better thing is that :
install electron rebuild inside the module desired (there MMM-MP3Player)cd ~/MagicMirror/modules/MMM-MP3Player npm install electron-rebuild
and execute it
./node_modules/.bin/electron-rebuild
-
@Bugsounet better not to install it 12 times , just one in MM, then maybe use in module folder…
too many modules need rebuild
-
I have already tried it but sometimes … it remakes the queue with the other modules and crashes … that’s why I abandoned this method. otherwise on principle i agree with you :)
after … like i say : “If it want to works like this … let’s go on !”
-
I think MM needs to escape from the dependency of Electron. (Frankly, it is needed only for fullscreen kiosk front, not using any advanced benefits of Electron itself)
or at least modules need to use worker-threading or spawning child process which would be independent from Electron process environment to work with node’s native-modules. -
@Sean yeh… could have used my prior startup script to test it out with chrome… start serveronly and use chrome to access