• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 Error

Scheduled Pinned Locked Moved Unsolved Troubleshooting
4 Posts 2 Posters 305 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.
  • Y Offline
    ysh
    last edited by Dec 31, 2024, 3:26 PM

    Hello I have an issue while installing MM. I use the manual install method, but upon running npm start i get

    ~/MagicMirror$ npm start
    
    > magicmirror@2.29.0 start
    > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
    
    node:events:496
          throw er; // Unhandled 'error' event
          ^
    
    Error: spawn /home/ysh/MagicMirror/node_modules/electron/dist/electron ENOENT
        at ChildProcess._handle.onexit (node:internal/child_process:285:19)
        at onErrorNT (node:internal/child_process:483:16)
        at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
    Emitted 'error' event on ChildProcess instance at:
        at ChildProcess._handle.onexit (node:internal/child_process:291:12)
        at onErrorNT (node:internal/child_process:483:16)
        at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
      errno: -2,
      code: 'ENOENT',
      syscall: 'spawn /home/ysh/MagicMirror/node_modules/electron/dist/electron',
      path: '/home/ysh/MagicMirror/node_modules/electron/dist/electron',
      spawnargs: [ 'js/electron.js' ]
    }
    

    I use XFCE4 but this error shows both on SSH and on XFCE4-Terminal. Is my DE the issue? I wish to use OpenBox alone though but this is just for testing purposes.
    Thank you!

    S 1 Reply Last reply Dec 31, 2024, 4:52 PM Reply Quote 0
    • S Offline
      sdetweil @ysh
      last edited by sdetweil Dec 31, 2024, 5:47 PM Dec 31, 2024, 4:52 PM

      @ysh what do you mean by DE and openbox means in VM?

      what os are you running?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      Y 1 Reply Last reply Dec 31, 2024, 11:30 PM Reply Quote 0
      • Y Offline
        ysh @sdetweil
        last edited by Dec 31, 2024, 11:30 PM

        @sdetweil I use PostMarketOS (Alpine), i am not planning to use MM as an actual mirror. By DE I mean Desktop Enviroment which in my case is XFCE4.

        S 1 Reply Last reply Dec 31, 2024, 11:57 PM Reply Quote 0
        • S Offline
          sdetweil @ysh
          last edited by Dec 31, 2024, 11:57 PM

          @ysh I don’t use mirror either … just info panel…

          I have not tried alpine in a while now…

          this sounds like an electron problem

          if you start in server mode

          npm run server
          can you access with browser
          http://localhost:8080
          (with default settings)

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            1/4
            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