Mirror wont even start



  • Just got a raspberry pi 3 Model B. I have no idea what I’m doing. I’ve tried following multiple tutorials and other forms to try and solve various things on my own. At this point I feel completely stuck and have to ask for help. When trying npm start I get an error. I believe I’ve correctly updated NPM and Node but I could be wrong. Like I said, I have no idea what I’m doing so ELI5 please! Thank You :)

    pi@raspberrypi:~/MagicMirror $ npm start
    npm WARN npm npm does not support Node.js v5.12.0
    npm WARN npm You should probably upgrade to a newer version of node as we
    npm WARN npm can’t make any promises that npm will work with this version.
    npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8.
    npm WARN npm You can find the latest version at https://nodejs.org/

    magicmirror@2.1.3 start /home/pi/MagicMirror
    sh run-start.sh

    /home/pi/MagicMirror/node_modules/electron/index.js:9
    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 Object. (/home/pi/MagicMirror/node_modules/electron/index.js:9:9)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions…js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:20:19)
    at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions…js (module.js:422:10)
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! magicmirror@2.1.3 start: sh run-start.sh
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the magicmirror@2.1.3 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/2017-11-04T09_24_59_245Z-debug.log


  • Module Developer

    The only tutorial supported here is this one.
    https://forum.magicmirror.builders/topic/236/complete-setup-tutorial

    Your node is not up to date for MM. Node should be somewhere in the area of v6.11.x and npm 3.10.10.

    This error: “Error(‘Electron failed to install correctly, please delete node_modules/electron and try installing again’)” is telling you to delete the electron folder. Then you would run npm install again in the MagicMirror directory. Then you would run npm start in the MagicMirror directory.


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.