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-AssistantMk2 problems when using electron-rebuild

    Scheduled Pinned Locked Moved Troubleshooting
    40 Posts 6 Posters 20.3k 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.
    • X Offline
      Xintium
      last edited by

      When I start my magic mirror I get node version error so I did as the instructions told me and tried using electron-rebuild. But when I use electron-rebuild I get this error:

      make: *** Ingen regel för att skapa målet ”Release/obj.target/grpc/deps/grpc/src/cpp/ext/filters/census/grpc_context.o”, som behövs av ”Release/obj.target/libgrpc.a”.  Stannar.
      make: Lämnar katalogen ”/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/build”
      gyp ERR! build error 
      gyp ERR! stack Error: `make` failed with exit code: 2
      gyp ERR! stack     at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/lib/build.js:262:23)
      gyp ERR! stack     at ChildProcess.emit (events.js:180:13)
      gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
      gyp ERR! System Linux 4.14.52-v7+
      gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/.bin/node-gyp" "rebuild" "--target=2.0.0" "--arch=arm" "--dist-url=https://atom.io/download/electron" "--build-from-source" "--module_name=grpc_node" "--module_path=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc" "--host=https://node-precompiled-binaries.grpc.io/" "--remote_path={name}/v1.14.0" "--package_name=electron-v2.0-linux-arm-glibc.tar.gz"
      gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc
      gyp ERR! node -v v9.11.2
      gyp ERR! node-gyp -v v3.8.0
      gyp ERR! not ok 
      
      Failed with exit code: 1
          at SafeSubscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/spawn-rx/lib/src/index.js:277:84)
          at SafeSubscriber.__tryOrUnsub (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:242:16)
          at SafeSubscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:201:26)
          at Subscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:132:26)
          at Subscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:106:18)
          at MapSubscriber.Subscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:132:26)
          at MapSubscriber.Subscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:106:18)
          at SafeSubscriber._next (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/spawn-rx/lib/src/index.js:251:65)
          at SafeSubscriber.__tryOrSetError (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:251:16)
          at SafeSubscriber.next (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:191:27)
      

      Excuse the Swedish parts.

      What do I do to make it work?

      ? 1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User @Xintium
        last edited by A Former User

        @xintium

        It seems you’ve missed some dependencies or mismatched version (especially node-gyp)

        First, To make things simple, do these before install,

        sudo apt-get update
        sudo apt-get upgrade
        

        and try rebuilding again.

        If fails, remove whole MMM-AssistantMk2, and resintall from scratch.

        X 1 Reply Last reply Reply Quote 0
        • X Offline
          Xintium @Guest
          last edited by

          @sean should I run

          npm install --save-dev electron-rebuild
          ./node_modules/.bin/electron-rebuild
          

          In MMM-AssistantMk2 or in MagicMirror directory?

          ? 1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User @Xintium
            last edited by

            @xintium
            In MMM-AssistankMk2 directory.

            X 2 Replies Last reply Reply Quote 0
            • X Offline
              Xintium @Guest
              last edited by

              @sean I get the same error as I shared abow

              1 Reply Last reply Reply Quote 0
              • X Offline
                Xintium @Guest
                last edited by

                @sean This is what I get when I run magic mirror

                
                > magicmirror@2.4.1 start /home/pi/MagicMirror
                > sh run-start.sh
                
                Starting MagicMirror: v2.4.1
                Loading config ...
                Loading module helpers ...
                No helper found for module: alert.
                Initializing new module helper ...
                Module helper loaded: updatenotification
                No helper found for module: clock.
                No helper found for module: MMM-darksky-hourly.
                Initializing new module helper ...
                Module helper loaded: MMM-MyCalendar
                WARNING! Could not load config file. Starting with default configuration. Error found: Error: Failed to load gRPC binary module because it was not installed for the current system
                Expected directory: electron-v2.0-linux-arm-glibc
                Found: [node-v59-linux-arm-glibc]
                This problem can often be fixed by running "npm rebuild" on the current system
                Original error: Cannot find module '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc/grpc_node.node'
                Loading module helpers ...
                No helper found for module: alert.
                Initializing new module helper ...
                Module helper loaded: updatenotification
                No helper found for module: clock.
                No helper found for module: MMM-darksky-hourly.
                Initializing new module helper ...
                Module helper loaded: MMM-MyCalendar
                App threw an error during load
                Error: Failed to load gRPC binary module because it was not installed for the current system
                Expected directory: electron-v2.0-linux-arm-glibc
                Found: [node-v59-linux-arm-glibc]
                This problem can often be fixed by running "npm rebuild" on the current system
                Original error: Cannot find module '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc/grpc_node.node'
                    at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:53:17)
                    at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:63:3)
                    at Module._compile (module.js:642:30)
                    at Object.Module._extensions..js (module.js:653:10)
                    at Module.load (module.js:561:32)
                    at tryModuleLoad (module.js:504:12)
                    at Function.Module._load (module.js:496:3)
                    at Module.require (module.js:586:17)
                    at require (internal/module.js:11:18)
                    at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:145:12)
                Whoops! There was an uncaught exception...
                { Error: Failed to load gRPC binary module because it was not installed for the current system
                Expected directory: electron-v2.0-linux-arm-glibc
                Found: [node-v59-linux-arm-glibc]
                This problem can often be fixed by running "npm rebuild" on the current system
                Original error: Cannot find module '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc/grpc_node.node'
                    at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:53:17)
                    at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:63:3)
                    at Module._compile (module.js:642:30)
                    at Object.Module._extensions..js (module.js:653:10)
                    at Module.load (module.js:561:32)
                    at tryModuleLoad (module.js:504:12)
                    at Function.Module._load (module.js:496:3)
                    at Module.require (module.js:586:17)
                    at require (internal/module.js:11:18)
                    at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:145:12) code: 'MODULE_NOT_FOUND' }
                MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                Launching application.
                
                ? 1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User @Xintium
                  last edited by A Former User

                  @xintium
                  You need module to rebuild.

                  npm install --save-dev electron-rebuild
                  ./node_modules/.bin/electron-rebuild
                  

                  If you tried already, something was wrong so rebuilding process might have been failed.
                  Have you any suspicious messages during your rebuilds?

                  X 1 Reply Last reply Reply Quote 0
                  • X Offline
                    Xintium @Guest
                    last edited by

                    @sean I get this message when trying to use electron-rebuild

                    make: *** Ingen regel för att skapa målet ”Release/obj.target/grpc/deps/grpc/src/cpp/ext/filters/census/grpc_context.o”, som behövs av ”Release/obj.target/libgrpc.a”.  Stannar.
                    make: Lämnar katalogen ”/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/build”
                    gyp ERR! build error 
                    gyp ERR! stack Error: `make` failed with exit code: 2
                    gyp ERR! stack     at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/lib/build.js:262:23)
                    gyp ERR! stack     at ChildProcess.emit (events.js:180:13)
                    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
                    gyp ERR! System Linux 4.14.52-v7+
                    gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/.bin/node-gyp" "rebuild" "--target=2.0.0" "--arch=arm" "--dist-url=https://atom.io/download/electron" "--build-from-source" "--module_name=grpc_node" "--module_path=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc" "--host=https://node-precompiled-binaries.grpc.io/" "--remote_path={name}/v1.14.0" "--package_name=electron-v2.0-linux-arm-glibc.tar.gz"
                    gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc
                    gyp ERR! node -v v9.11.2
                    gyp ERR! node-gyp -v v3.8.0
                    gyp ERR! not ok 
                    
                    Failed with exit code: 1
                        at SafeSubscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/spawn-rx/lib/src/index.js:277:84)
                        at SafeSubscriber.__tryOrUnsub (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:242:16)
                        at SafeSubscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:201:26)
                        at Subscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:132:26)
                        at Subscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:106:18)
                        at MapSubscriber.Subscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:132:26)
                        at MapSubscriber.Subscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:106:18)
                        at SafeSubscriber._next (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/spawn-rx/lib/src/index.js:251:65)
                        at SafeSubscriber.__tryOrSetError (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:251:16)
                        at SafeSubscriber.next (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:191:27)
                    
                    ? 1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User @Xintium
                      last edited by A Former User

                      @xintium
                      For confirmation,

                      1. Did you update & upgrade dependencies?
                      2. After that, did you remove MMM-AssistantMk2 directory and reinstall again?

                      Your error shows some of your dependencies are not updated to rebuild.
                      In that case, usually above steps are enough to fix.

                      Maybe this might be a help, but not sure.

                      sudo apt-get install build-essential 
                      sudo npm install -g node-gyp
                      
                      1 Reply Last reply Reply Quote 0
                      • L Offline
                        logen563
                        last edited by

                        Hello!

                        I have this error, when trying to run the node_auth_test.js

                        Error: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.21’ not found (required by /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/node-v48-linux-arm-glibc/grpc_node.node)

                        Can you give some advise how to solve this?
                        Thanks

                        ? 1 Reply Last reply Reply Quote 0
                        • ? Offline
                          A Former User @logen563
                          last edited by

                          @logen563
                          Your GCC seems out of date.
                          Which RPI and OS are you using?

                          Try this, then reinstall again.

                          sudo apt-get update
                          sudo apt-get upgrade
                          
                          1 Reply Last reply Reply Quote 0
                          • L Offline
                            logen563
                            last edited by

                            Thanks for the quick replay!
                            Will try the reinstall, the update/upgrade didn’t solved the issue.
                            I’m using rpi3, with raspbian jessie light.

                            ? 1 Reply Last reply Reply Quote 0
                            • ? Offline
                              A Former User @logen563
                              last edited by A Former User

                              @logen563
                              I have no experience about Jessie Lite. But by some researching, I’ve found this;
                              https://github.com/doublethinkco/cpp-ethereum-cross/issues/79

                              Suggested solution is to upgrade your gcc-5

                              And, As I know, Raspbian Stretch (next version of Jessie) has no problem about this.

                              1 Reply Last reply Reply Quote 0
                              • L Offline
                                logen563
                                last edited by

                                Thanks for the replay, I will try that and will let you know :)

                                1 Reply Last reply Reply Quote 0
                                • L Offline
                                  logen563
                                  last edited by

                                  Thanks for the link! After updating with the stretch gcc-5, its working:) but I see I have to move on to the Stretch distro.

                                  ? 1 Reply Last reply Reply Quote 0
                                  • ? Offline
                                    A Former User @logen563
                                    last edited by

                                    @logen563
                                    If you leave details here, I’ll add it to github repository for others. Thanks.

                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      mrega
                                      last edited by mrega

                                      Hi, im not expert!
                                      Someone can help me?
                                      Thanks!

                                      I have downgrade node js and npm;
                                      pi@raspberrypi:~/MagicMirror $ node -v
                                      v8.11.4

                                      pi@raspberrypi:~/MagicMirror $ npm -v
                                      5.6.0

                                      pi@raspberrypi:~/MagicMirror $ node-gyp -v
                                      v3.8.0

                                      Then
                                      npm install --save-dev electron-rebuild
                                      ./node_modules/.bin/electron-rebuild

                                      Then -> Error!


                                      CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.o
                                      make: *** No hay ninguna regla para construir el objetivo ‘Release/obj.target/grpc/deps/grpc/src/cpp/ext/filters/census/grpc_context.o’, necesario para ‘Release/obj.target/libgrpc.a’. Alto.
                                      make: se sale del directorio ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/build’
                                      gyp ERR! build error
                                      gyp ERR! stack Error: make failed with exit code: 2
                                      gyp ERR! stack at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/lib/build.js:262:23)
                                      gyp ERR! stack at emitTwo (events.js:126:13)
                                      gyp ERR! stack at ChildProcess.emit (events.js:214:7)
                                      gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
                                      gyp ERR! System Linux 4.14.62-v7+
                                      gyp ERR! command “/usr/bin/node” “/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/.bin/node-gyp” “rebuild” “–target=2.0.0” “–arch=arm” “–dist-url=https://atom.io/download/electron” “–build-from-source” “–module_name=grpc_node” “–module_path=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc” “–host=https://node-precompiled-binaries.grpc.io/” “–remote_path={name}/v1.14.1” “–package_name=electron-v2.0-linux-arm-glibc.tar.gz”
                                      gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc
                                      gyp ERR! node -v v8.11.4
                                      gyp ERR! node-gyp -v v3.8.0
                                      gyp ERR! not ok

                                      Failed with exit code: 1

                                      Error: gyp info it worked if it ends with ok
                                      gyp info using node-gyp@3.8.0
                                      gyp info using node@8.11.4 | linux | arm
                                      gyp info spawn /usr/bin/python2
                                      gyp info spawn args [ ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/gyp/gyp_main.py’,
                                      gyp info spawn args ‘binding.gyp’,
                                      gyp info spawn args ‘-f’,
                                      gyp info spawn args ‘make’,
                                      gyp info spawn args ‘-I’,
                                      gyp info spawn args ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/build/config.gypi’,
                                      gyp info spawn args ‘-I’,
                                      gyp info spawn args ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/addon.gypi’,
                                      gyp info spawn args ‘-I’,
                                      gyp info spawn args ‘/home/pi/.electron-gyp/.node-gyp/iojs-2.0.0/common.gypi’,
                                      gyp info spawn args ‘-Dlibrary=shared_library’,
                                      gyp info spawn args ‘-Dvisibility=default’,
                                      gyp info spawn args ‘-Dnode_root_dir=/home/pi/.electron-gyp/.node-gyp/iojs-2.0.0’,
                                      gyp info spawn args ‘-Dnode_gyp_dir=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp’,
                                      gyp info spawn args ‘-Dnode_lib_file=/home/pi/.electron-gyp/.node-gyp/iojs-2.0.0/<(target_arch)/iojs.lib’,
                                      gyp info spawn args ‘-Dmodule_root_dir=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc’,
                                      gyp info spawn args ‘-Dnode_engine=v8’,
                                      gyp info spawn args ‘–depth=.’,
                                      gyp info spawn args ‘–no-parallel’,
                                      gyp info spawn args ‘–generator-output’,
                                      gyp info spawn args ‘build’,
                                      gyp info spawn args ‘-Goutput_dir=.’ ]
                                      gyp info spawn make
                                      gyp info spawn args [ ‘BUILDTYPE=Release’, ‘-C’, ‘build’ ]
                                      make: se entra en el directorio ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/build’
                                      CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
                                      CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/avl/avl.o

                                      CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.o
                                      make: *** No hay ninguna regla para construir el objetivo ‘Release/obj.target/grpc/deps/grpc/src/cpp/ext/filters/census/grpc_context.o’, necesario para ‘Release/obj.target/libgrpc.a’. Alto.
                                      make: se sale del directorio ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/build’
                                      gyp ERR! build error
                                      gyp ERR! stack Error: make failed with exit code: 2
                                      gyp ERR! stack at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/lib/build.js:262:23)
                                      gyp ERR! stack at emitTwo (events.js:126:13)
                                      gyp ERR! stack at ChildProcess.emit (events.js:214:7)
                                      gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
                                      gyp ERR! System Linux 4.14.62-v7+
                                      gyp ERR! command “/usr/bin/node” “/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/.bin/node-gyp” “rebuild” “–target=2.0.0” “–arch=arm” “–dist-url=https://atom.io/download/electron” “–build-from-source” “–module_name=grpc_node” “–module_path=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc” “–host=https://node-precompiled-binaries.grpc.io/” “–remote_path={name}/v1.14.1” “–package_name=electron-v2.0-linux-arm-glibc.tar.gz”
                                      gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc
                                      gyp ERR! node -v v8.11.4
                                      gyp ERR! node-gyp -v v3.8.0
                                      gyp ERR! not ok

                                      Failed with exit code: 1
                                      at SafeSubscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/spawn-rx/lib/src/index.js:277:84)
                                      at SafeSubscriber.__tryOrUnsub (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:242:16)
                                      at SafeSubscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:201:26)
                                      at Subscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:132:26)
                                      at Subscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:106:18)
                                      at MapSubscriber.Subscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:132:26)
                                      at MapSubscriber.Subscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:106:18)
                                      at SafeSubscriber._next (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/spawn-rx/lib/src/index.js:251:65)
                                      at SafeSubscriber.__tryOrSetError (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:251:16)
                                      at SafeSubscriber.next (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/Subscriber.js:191:27)

                                      Something idea whats wrong?
                                      Thanks!

                                      ? 1 Reply Last reply Reply Quote 0
                                      • ? Offline
                                        A Former User @mrega
                                        last edited by A Former User

                                        @mrega
                                        Dear buddy,
                                        After some research, I’ve found something. a few days ago, grpc was updated, but proper binaries are not provided yet. That’s why rebuild-from-source doesn’t work.

                                        Here is an urgent but experimental fix.
                                        I cannot give a guarantee to work, but think there is worthy of trying.

                                        first,

                                        cd node_modules
                                        rm -rf grpc
                                        cd ..
                                        npm install @grpc/grpc-js
                                        
                                        

                                        I wish grpc release proper target binaries ASAP.

                                        1 Reply Last reply Reply Quote 0
                                        • Y Offline
                                          yep_DD
                                          last edited by

                                          Hi @Sean
                                          I have the same problem trying to build from scratch. It fails at grpc, I tried your solution but is the same

                                          gyp ERR! build error 
                                          gyp ERR! stack Error: `make` failed with exit code: 2
                                          gyp ERR! stack     at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/lib/build.js:262:23)
                                          gyp ERR! stack     at ChildProcess.emit (events.js:180:13)
                                          gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
                                          gyp ERR! System Linux 4.14.62-v7+
                                          gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/.bin/node-gyp" "rebuild" "--target=2.0.0" "--arch=arm" "--dist-url=https://atom.io/download/electron" "--build-from-source" "--module_name=grpc_node" "--module_path=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc" "--host=https://node-precompiled-binaries.grpc.io/" "--remote_path={name}/v1.14.1" "--package_name=electron-v2.0-linux-arm-glibc.tar.gz"
                                          gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc
                                          gyp ERR! node -v v9.11.2
                                          gyp ERR! node-gyp -v v3.8.0
                                          gyp ERR! not ok 
                                          
                                          
                                          
                                          ? 1 Reply Last reply Reply Quote 0
                                          • ? Offline
                                            A Former User @yep_DD
                                            last edited by A Former User

                                            @yep_dd
                                            Here is the answer from grpc-node community
                                            https://github.com/grpc/grpc-node/issues/507#issuecomment-414465022

                                            0_1534848427079_grpc_rebuilding_for_Electron_failed__·Issue__507·_grpc_grpc-node.png

                                            So, wait for a while… It’s not the fault of my module… T_T

                                            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
                                            • 2
                                            • 1 / 2
                                            • 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