MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. DeSparta
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    D
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Groups 0

    Posts

    Recent Best Controversial
    • 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

      posted in Troubleshooting
      D
      DeSparta
    • 1 / 1