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-rebuild problems with MagicMirror 2.22.0

    Scheduled Pinned Locked Moved Solved Troubleshooting
    53 Posts 5 Posters 18.0k Views 6 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.
    • S Offline
      sdetweil @wishmaster270
      last edited by

      @wishmaster270 i don’t see any issues for your module either (modified using postinstall script)

      sam@galliumos:~/MagicMirror/modules/MMM-GPIO-Notifications$ npm install --omit=dev --no-fund --no-audit
      npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
      
      > MMM-GPIO-Notifications@0.0.5 postinstall
      > ./postinstall
      
      ⠧ Building module: epoll, Completed: 0make: Entering directory '/home/sam/MagicMirror/modules/MMM-GPIO-Notifications/node_modules/epoll/build'
        CXX(target) Release/obj.target/epoll/src/epoll.o
      ⠴ Building module: epoll, Completed: 0  SOLINK_MODULE(target) Release/obj.target/epoll.node
      ⠧ Building module: epoll, Completed: 0  COPY Release/epoll.node
      ⠇ Building module: epoll, Completed: 0make: Leaving directory '/home/sam/MagicMirror/modules/MMM-GPIO-Notifications/node_modules/epoll/build'
      ✔ Rebuild Complete
      
      added 170 packages in 20s
      
      

      npm 8.11.0
      node 16.16.0

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @KristjanESPERANTO
        last edited by

        @KristjanESPERANTO hm…

        my laptop uname
        Linux galliumos 4.16.18-galliumos #1 SMP PREEMPT Sun Jun 23 04:14:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        karsten13K 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @KristjanESPERANTO
          last edited by sdetweil

          @KristjanESPERANTO but it didn’t execute the postinstall script…

          tried to build without it… and it WILL fail without using electron-rebuild

          what npm version is this?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          KristjanESPERANTOK 1 Reply Last reply Reply Quote 0
          • KristjanESPERANTOK Offline
            KristjanESPERANTO Module Developer @sdetweil
            last edited by

            @sdetweil npm -v: 8.19.2

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @KristjanESPERANTO
              last edited by

              @KristjanESPERANTO weird

              sam@galliumos:~/MagicMirror/modules/MMM-Buttons$ npm -v
              8.19.2
              sam@galliumos:~/MagicMirror/modules/MMM-Buttons$ npm install --omit=dev --no-fund --no-audit
              
              > Magic-Mirror-Module-Buttons@1.0.0 postinstall
              > ./postinstall
              
              ⠋ Building module: epoll, Completed: 0make: Entering directory '/home/sam/MagicMirror/modules/MMM-Buttons/node_modules/epoll/build'
                CXX(target) Release/obj.target/epoll/src/epoll.o
              ⠼ Building module: epoll, Completed: 0  SOLINK_MODULE(target) Release/obj.target/epoll.node
              ⠧ Building module: epoll, Completed: 0  COPY Release/epoll.node
              ⠇ Building module: epoll, Completed: 0make: Leaving directory '/home/sam/MagicMirror/modules/MMM-Buttons/node_modules/epoll/build'
              ✔ Rebuild Complete
              
              added 6 packages in 15s
              
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              karsten13K 1 Reply Last reply Reply Quote 0
              • karsten13K Offline
                karsten13 @sdetweil
                last edited by

                strange, I did npm install in the MMM-Buttons folder.

                More info (running in a docker container):

                node@raspberrypi:/opt/magic_mirror$ npx node-gyp -v
                v9.3.1
                node@raspberrypi:/opt/magic_mirror$ node -v
                v19.3.0
                node@raspberrypi:/opt/magic_mirror$ uname -a
                Linux raspberrypi 5.15.76-v7l+ #1597 SMP Fri Nov 4 12:14:58 GMT 2022 armv7l GNU/Linux
                node@raspberrypi:/opt/magic_mirror$ cat /etc/os-release
                PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
                NAME="Debian GNU/Linux"
                VERSION_ID="11"
                VERSION="11 (bullseye)"
                VERSION_CODENAME=bullseye
                ID=debian
                HOME_URL="https://www.debian.org/"
                SUPPORT_URL="https://www.debian.org/support"
                BUG_REPORT_URL="https://bugs.debian.org/"
                node@raspberrypi:/opt/magic_mirror$ npm -v
                9.2.0
                
                1 Reply Last reply Reply Quote 0
                • karsten13K Offline
                  karsten13 @sdetweil
                  last edited by

                  @sdetweil said in electron-rebuild problems with MagicMirror 2.22.0:

                  Linux galliumos 4.16.18-galliumos #1 SMP PREEMPT Sun Jun 23 04:14:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

                  thats x86_64, not arm32v7, totally different concerning compiling stuff which is done in electron-rebuild …

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @karsten13
                    last edited by sdetweil

                    @karsten13 his was x86_64… (edit: i see his is amd64, oops, tldr;l!)…

                    I will see if I can get a vm on my new amd64 chromebook… had it til I powered off…

                    but I built on buster and bullseye on pi4 also … MM version 2.22

                    but his didn’t execute the postinstall script

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    karsten13K 2 Replies Last reply Reply Quote 0
                    • karsten13K Offline
                      karsten13 @sdetweil
                      last edited by

                      @sdetweil said in electron-rebuild problems with MagicMirror 2.22.0:

                      his was x86_64…

                      he wrote “I use a fully patched Raspberry OS Bullseye 32Bit.” so I think this is arm32v7

                      but I built on buster and bullseye on pi4 also … MM version 2.22
                      but his didn’t execute the postinstall script

                      strange

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @karsten13
                        last edited by

                        @karsten13 yeh, his says

                        kristjan@debian:~/Infomonitor/MagicMirror/modules/MMM-Buttons$ uname -r
                        5.10.0-20-amd64

                        so not 32 bit.

                        @KristjanESPERANTO

                        can you go to the MMM-Buttons folder and do

                        ./postinstall

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 5 / 6
                        • 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