• 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-rebuild and MagicMirror v2.18 (and more)

Scheduled Pinned Locked Moved Development
40 Posts 16 Posters 17.3k Views 21 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.
  • L Offline
    lhops @bugsounet
    last edited by Jan 10, 2022, 4:40 PM

    @bugsounet
    That did the trick. How can I thank you. It is working like it should!!

    B 1 Reply Last reply Jan 10, 2022, 6:22 PM Reply Quote 0
    • B Offline
      bugsounet Banned @lhops
      last edited by Jan 10, 2022, 6:22 PM

      I have open this PR (Pull Request) for commit this change with MagicMirror-rebuild to @paviro to accept it (or not)

      S 1 Reply Last reply Jan 10, 2022, 8:36 PM Reply Quote 0
      • S Offline
        susl @bugsounet
        last edited by Jan 10, 2022, 8:36 PM

        @bugsounet I followed your instructions but the rebuilding step failed with the following message:

        MagicMirror Building module: epoll, Completed: 0gyp: name ‘openssl_fips’ is not defined while evaluating condition ‘openssl_fips != “”’ in binding.gyp while trying to load binding.gyp
        ✖ MagicMirror Rebuild Failed

        An unhandled error occurred inside electron-rebuild
        node-gyp failed to rebuild ‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll’.
        Error: gyp failed with exit code: 1

        Error: node-gyp failed to rebuild ‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll’.
        Error: gyp failed with exit code: 1

        at ModuleRebuilder.rebuildNodeGypModule (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/magicmirror-rebuild/build/module-rebuilder.js:193:19)
        at processTicksAndRejections (node:internal/process/task_queues:96:5)
        at async Rebuilder.rebuildModuleAt (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/magicmirror-rebuild/build/rebuild.js:180:9)
        at async Rebuilder.rebuild (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/magicmirror-rebuild/build/rebuild.js:143:17)
        at async /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/magicmirror-rebuild/build/cli.js:141:9

        Do you know what the problem is? Thanks!

        B 1 Reply Last reply Jan 10, 2022, 10:13 PM Reply Quote 0
        • B Offline
          bugsounet Banned @susl
          last edited by Jan 10, 2022, 10:13 PM

          @susl :

          • Recommended version of npm: v6.14.15
          • Recommended version of node: v14.x.x or v16.x.x

          to verify, try this in a terminal (or ssh):

          node -v
          npm -v
          
          S 1 Reply Last reply Jan 10, 2022, 10:32 PM Reply Quote 0
          • S Offline
            susl @bugsounet
            last edited by Jan 10, 2022, 10:32 PM

            @bugsounet
            node version: v17.3.0
            npm version: 8.3.0

            So obviously not the correct version :-( Do you know how I can change the versions?

            S 1 Reply Last reply Jan 10, 2022, 11:11 PM Reply Quote 0
            • S Away
              sdetweil @susl
              last edited by Jan 10, 2022, 11:11 PM

              @susl you can use n to install or select different versions of node (and npm)
              to install n
              sudo npm install n -g
              then to install or use a version of node
              n 16

              to switch

              n

              the select from the list

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              S 1 Reply Last reply Jan 10, 2022, 11:38 PM Reply Quote 0
              • S Offline
                susl @sdetweil
                last edited by Jan 10, 2022, 11:38 PM

                @sdetweil
                Thanks a lot. I works now!

                1 Reply Last reply Reply Quote 0
                • C Offline
                  cowboysdude Module Developer
                  last edited by Jan 11, 2022, 2:26 AM

                  @bugsounet Thank you for this!! It works like a charm ;)

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    selyjohns
                    last edited by Jan 19, 2022, 6:14 PM

                    Wow, perfect ! Thank you so much !

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      michael5r Module Developer
                      last edited by Mar 16, 2022, 1:57 PM

                      Thanks for doing this - much appreciated!

                      B 1 Reply Last reply Mar 16, 2022, 2:36 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 2 / 4
                      • 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