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.

    [MMM-Buttons] An unhandled error occurred inside electron-rebuild

    Scheduled Pinned Locked Moved Troubleshooting
    3 Posts 3 Posters 4.0k Views
    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.
    • F Offline
      FlorianRD
      last edited by

      Anyone now why?

      > electron-rebuild -e ../../node_modules/electron
      
      An unhandled error occurred inside electron-rebuild
      Unable to find electron-prebuilt's version number, either install it or specify an explicit version
      
      Error: Unable to find electron-prebuilt's version number, either install it or specify an explicit version
          at _callee$ (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/electron-rebuild/lib/cli.js:74:17)
          at tryCatch (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:63:40)
          at Generator.invoke [as _invoke] (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:337:22)
          at Generator.prototype.(anonymous function) [as next] (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:96:21)
          at Generator.tryCatcher (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/bluebird/js/release/util.js:16:23)
          at PromiseSpawn._promiseFulfilled (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/bluebird/js/release/generators.js:97:49)
          at /home/pi/MagicMirror/modules/MMM-Buttons/node_modules/bluebird/js/release/generators.js:201:15
          at Object. (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/electron-rebuild/lib/cli.js:197:4)
          at Module._compile (module.js:571:32)
          at Object.Module._extensions..js (module.js:580:10)
          at Module.load (module.js:488:32)
          at tryModuleLoad (module.js:447:12)
          at Function.Module._load (module.js:439:3)
          at Module.runMain (module.js:605:10)
          at run (bootstrap_node.js:420:7)
          at startup (bootstrap_node.js:139:9)
      
      
      brobergB J 2 Replies Last reply Reply Quote 1
      • brobergB Offline
        broberg Project Sponsor @FlorianRD
        last edited by

        @FlorianRD

        Did you run npm install in the MMM-Buttons folder?

        1 Reply Last reply Reply Quote 0
        • J Offline
          Jopyth Moderator @FlorianRD
          last edited by Jopyth

          @FlorianRD You need to be on Magic Mirror versions 2.1.0 or higher (i.e. develop branch).

          Edit: What MagicMirror version are you on? 2.1.0? When you navigate from the MMM-Buttons folder to ../../node_modules you should end up in a folder with an electron folder. If there is only a electron-prebuilt folder, it should be possible to fix the issues by upgrading MagicMirror to 2.1.0.

          Helpful sticky: How to troubleshoot

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 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