MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    electron missing on installation installation problems on first start up

    Scheduled Pinned Locked Moved Troubleshooting
    2 Posts 2 Posters 1.3k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      DeSparta
      last edited by DeSparta

      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

      S 1 Reply Last reply Reply Quote 0
      • S Away
        sdetweil @DeSparta
        last edited by

        @DeSparta what kind of pi? pi 0??

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

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy