MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

electron missing on installation installation problems on first start up



  • Hi All!

    Essentially what it says on the tin, I have been setting up on a raspi4 and was looking to update the Magic Mirror got a bit mixed up and ended wiping the SD card and starting again.
    Now when I try and start-up following the installation instructions per the documentation (which has changed since the last time I did it, it was a single line installation before I believe) I am throwing an error based around npm when I cd into /MagicMirror “npm install” doesn’t last for as long as it says it should and then when I try “npm start” it throws the error that is seen here:

    > magicmirror@2.13.0 start /home/pi/MagicMirror
    > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
    
    sh: 1: ./node_modules/.bin/electron: not found
    npm ERR! code ELIFECYCLE
    npm ERR! syscall spawn
    npm ERR! file sh
    npm ERR! errno ENOENT
    npm ERR! magicmirror@2.13.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
    npm ERR! spawn ENOENT
    npm ERR! 
    npm ERR! Failed at the magicmirror@2.13.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/2020-10-26T14_02_01_898Z-debug.log
    
    .
    

    I have wiped and redone this twice to double I wasn’t just failing to copy paste a couple of lines into the terminal but the problem is persisting.

    As you can see it’s something to do with the Magic Mirror files themselves missing electron but I’ve just been cloning straight from the repo so I’m a bit stuck. Any ideas? Is there a step I’m missing from the documentation?

    Thanks for your time,
    DCT



  • @DeSparta what kind of pi? pi 0??

    use my install script , see the instructions here
    https://github.com/sdetweil/MagicMirror_scripts


Log in to reply