• 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.

"node-abi" problem with MM v2.18.0

Scheduled Pinned Locked Moved Solved Troubleshooting
5 Posts 4 Posters 2.3k 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 Jan 14, 2022, 10:05 PM

    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
    
    
    K 1 Reply Last reply Jan 14, 2022, 10:18 PM Reply Quote 0
    • K Online
      karsten13 @hclaus
      last edited by Jan 14, 2022, 10:18 PM

      @hclaus

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

      B C 2 Replies Last reply Jan 15, 2022, 12:59 AM Reply Quote 0
      • B Offline
        bugsounet Banned @karsten13
        last edited by Jan 15, 2022, 12:59 AM

        @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 Jan 15, 2022, 5:41 PM

          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
          • C Offline
            cowboysdude Module Developer @karsten13
            last edited by Jan 16, 2022, 2:23 AM

            @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
            • 1 / 1
            1 / 1
            • First post
              2/5
              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