Read the statement by Michael Teeuw here.
Magic Mirror wont start
-
I cant get Magic Mirror to start…I am a novice. Im running 2019-07-10
Raspbian Buster with desktop and recommended software. I am using this guide https://forum.magicmirror.builders/topic/236/complete-setup-tutorial/6
Any help is greatly aprecciated!pi@raspberrypi:~/MagicMirror $ npm start
magicmirror@2.8.0 start /home/pi/MagicMirror
sh run-start.sh
/home/pi/MagicMirror/node_modules/electron/index.js:14
throw new Error(‘Electron failed to install correctly, please delete node_modules/electron and try installing again’)
^
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at getElectronPath (/home/pi/MagicMirror/node_modules/electron/index.js:14:11)
at Object. (/home/pi/MagicMirror/node_modules/electron/index.js:18:18)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! magicmirror@2.8.0 start:
sh run-start.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the magicmirror@2.8.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2019-09-24T01_02_05_382Z-debug.log
r $ sudo npm start
magicmirror@2.8.0 start /home/pi/MagicMirror
sh run-start.sh
/home/pi/MagicMirror/node_modules/electron/index.js:14
throw new Error(‘Electron failed to install correctly, please delete node_modules/electron and try installing again’)
^
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at getElectronPath (/home/pi/MagicMirror/node_modules/electron/index.js:14:11)
at Object. (/home/pi/MagicMirror/node_modules/electron/index.js:18:18)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! magicmirror@2.8.0 start:
sh run-start.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the magicmirror@2.8.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-09-24T00_41_40_033Z-debug.log
pi@raspberrypi:~/MagicMirror $ DISPLAY=:0 npm start
magicmirror@2.8.0 start /home/pi/MagicMirror
sh run-start.sh
/home/pi/MagicMirror/node_modules/electron/index.js:14
throw new Error(‘Electron failed to install correctly, please delete node_modules/electron and try installing again’)
^
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at getElectronPath (/home/pi/MagicMirror/node_modules/electron/index.js:14:11)
at Object. (/home/pi/MagicMirror/node_modules/electron/index.js:18:18)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! magicmirror@2.8.0 start:
sh run-start.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the magicmirror@2.8.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2019-09-24T00_50_26_474Z-debug.log
-
@everybodyfloats try my updated installer.
Rename the MagicMirror folder out of the way first
https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installer
-
@sdetweil OMG it works!!! Thank you!!!
-
@everybodyfloats cool… can u mark this issue closed (3 dots to the right of the message that solves if)