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.

    "node-abi" problem with MM v2.18.0

    Scheduled Pinned Locked Moved Solved Troubleshooting
    5 Posts 4 Posters 3.0k Views 4 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.
    • H Offline
      hclaus
      last edited by

      Hello everyone,

      after updating to MagicMirror v2.18.0, a couple of modules show some errors related with “node-abi”. I already did a fresh installation of MagicMirror and node.js but the problems persist. A separate installation of node-abi in the module folder and the main MagicMirror-folder (via command “npm i node-abi”) did not solve the issues, either.

      Can someone help me, how to fix it? Thank you in advance!

      The following terminal outputs are shown, when I try to install the module “MMM-Buttons”:

      pi@raspberrypi:~/MagicMirror $ cd ~/MagicMirror/modules # adapt directory if you are using a different one
      pi@raspberrypi:~/MagicMirror/modules $ git clone https://github.com/Jopyth/MMM-Buttons.git
      Cloning into 'MMM-Buttons'...
      remote: Enumerating objects: 54, done.
      remote: Total 54 (delta 0), reused 0 (delta 0), pack-reused 54
      Unpacking objects: 100% (54/54), done.
      pi@raspberrypi:~/MagicMirror/modules $ cd MMM-Buttons
      pi@raspberrypi:~/MagicMirror/modules/MMM-Buttons $ npm install
      npm WARN deprecated har-validator@5.1.5: this library is no longer supported
      npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
      npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
      
      > Magic-Mirror-Module-Buttons@1.0.0 postinstall
      > node_modules/.bin/electron-rebuild -e ../../node_modules/electron
      
      ⠋ Searching dependency tree
      An unhandled error occurred inside electron-rebuild
      Could not detect abi for version 16.0.5 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
      
      Error: Could not detect abi for version 16.0.5 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
          at Object.getAbi (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/node-abi/index.js:36:9)
          at new Rebuilder (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/electron-rebuild/lib/src/rebuild.js:126:48)
          at rebuildWithOptions (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/electron-rebuild/lib/src/rebuild.js:404:23)
          at Object.doRebuild [as rebuild] (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/electron-rebuild/lib/src/rebuild.js:427:16)
          at /home/pi/MagicMirror/modules/MMM-Buttons/node_modules/electron-rebuild/lib/src/cli.js:124:33
          at Generator.next (<anonymous>)
          at fulfilled (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/electron-rebuild/lib/src/cli.js:6:58)
      npm ERR! code 255
      npm ERR! path /home/pi/MagicMirror/modules/MMM-Buttons
      npm ERR! command failed
      npm ERR! command sh -c node_modules/.bin/electron-rebuild -e ../../node_modules/electron
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/pi/.npm/_logs/2022-01-14T21_22_15_425Z-debug.log
      
      
      karsten13K 1 Reply Last reply Reply Quote 0
      • karsten13K Online
        karsten13 @hclaus
        last edited by

        @hclaus

        see https://forum.magicmirror.builders/topic/16074/electron-rebuild-and-magicmirror-v2-18-and-more?page=1

        bugsounetB cowboysdudeC 2 Replies Last reply Reply Quote 0
        • bugsounetB Offline
          bugsounet Banned @karsten13
          last edited by

          @karsten13 mouahmouah… I’m a Magician…
          Wow You have shared one link of my app!!

          1 Reply Last reply Reply Quote 0
          • H Offline
            hclaus
            last edited by

            Thank you for this cross reference! I will follow the instructions in the other thread then and - in case - post further questions there.

            Cheers folks!

            1 Reply Last reply Reply Quote 0
            • cowboysdudeC Offline
              cowboysdude Module Developer @karsten13
              last edited by

              @karsten13 Good reference. It’s how I got all mine working again after the upgrade… now everything is working again!!!

              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