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.

    Works with Node Serveronly but not npm start MM

    Scheduled Pinned Locked Moved Troubleshooting
    24 Posts 4 Posters 4.8k 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.
    • J Offline
      JohnBachini @sdetweil
      last edited by lavolp3

      @sdetweil

      Still no joy :-(

      pi@MagicMirror:~ $ cd MagicMirror//modules/MMM-synology-ds/
      pi@MagicMirror:~/MagicMirror/modules/MMM-synology-ds $ rm -rf node_modules
      pi@MagicMirror:~/MagicMirror/modules/MMM-synology-ds $ rm package-lock.json
      pi@MagicMirror:~/MagicMirror/modules/MMM-synology-ds $ npm install
      
      > mmmagic@0.5.3 install /home/pi/MagicMirror/modules/MMM-synology-ds/node_modules/mmmagic
      > node-gyp rebuild
      
      make: Entering directory '/home/pi/MagicMirror/modules/MMM-synology-ds/node_modules/mmmagic/build'
        CC(target) Release/obj.target/libmagic/deps/libmagic/src/apprentice.o
        CC(target) Release/obj.target/libmagic/deps/libmagic/src/apptype.o
        CC(target) Release/obj.target/libmagic/deps/libmagic/src/ascmagic.o
        CC(target) Release/obj.target/libmagic/deps/libmagic/src/cdf.o
        CC(target) Release/obj.target/libmagic/deps/libmagic/src/cdf_time.o
        CC(target) Release/obj.target/libmagic/deps/libmagic/src/compress.o
        CC(target) Release/obj.target/libmagic/deps/libmagic/src/der.o
        CC(target) Release/obj.target/libmagic/deps/libmagic/src/encoding.o
        CC(target) Release/obj.target/libmagic/deps/libmagic/src/fsmagic.o
        CC(target) Release/obj.target/libmagic/deps/libmagic/src/funcs.o
        CC(target) Release/obj.target/libmagic/deps/libmagic/src/is_tar.o
        CC(target) Release/obj.target/libmagic/deps/libmagic/src/magic.o
        CC(target) Release/obj.target/libmagic/deps/libmagic/src/print.o
        CC(target) Release/obj.target/libmagic/deps/libmagic/src/readcdf.o
        CC(target) Release/obj.target/libmagic/deps/libmagic/src/readelf.o
        CC(target) Release/obj.target/libmagic/deps/libmagic/src/softmagic.o
        CC(target) Release/obj.target/libmagic/deps/libmagic/src/fmtcheck.o
        CC(target) Release/obj.target/libmagic/deps/libmagic/src/strlcat.o
        CC(target) Release/obj.target/libmagic/deps/libmagic/src/strlcpy.o
        AR(target) Release/obj.target/deps/libmagic/magic.a
        COPY Release/magic.a
        CXX(target) Release/obj.target/magic/src/binding.o
      In file included from ../src/binding.cc:3:
      ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
      ../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
           , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                                    ^
      ../src/binding.cc: In static member function ‘static void Magic::DetectFile(const Nan::FunctionCallbackInfo<v8::Value>&)’:
      ../src/binding.cc:184:59: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                                        (uv_after_work_cb)Magic::DetectAfter);
                                                                 ^~~~~~~~~~~
      ../src/binding.cc: In static member function ‘static void Magic::Detect(const Nan::FunctionCallbackInfo<v8::Value>&)’:
      ../src/binding.cc:217:59: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                                        (uv_after_work_cb)Magic::DetectAfter);
                                                                 ^~~~~~~~~~~
      In file included from ../src/binding.cc:1:
      ../src/binding.cc: At global scope:
      /home/pi/.cache/node-gyp/10.20.0/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
             (node::addon_register_func) (regfunc),                          \
                                                 ^
      /home/pi/.cache/node-gyp/10.20.0/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
         NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
         ^~~~~~~~~~~~~
      ../src/binding.cc:415:3: note: in expansion of macro ‘NODE_MODULE’
         NODE_MODULE(magic, init);
         ^~~~~~~~~~~
      In file included from /home/pi/.cache/node-gyp/10.20.0/include/node/node.h:63,
                       from ../src/binding.cc:1:
      /home/pi/.cache/node-gyp/10.20.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
      /home/pi/.cache/node-gyp/10.20.0/include/node/node_object_wrap.h:84:78:   required from here
      /home/pi/.cache/node-gyp/10.20.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                      reinterpret_cast<Callback>(callback), type);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /home/pi/.cache/node-gyp/10.20.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
      ../../nan/nan_object_wrap.h:65:61:   required from here
      /home/pi/.cache/node-gyp/10.20.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
        SOLINK_MODULE(target) Release/obj.target/magic.node
        COPY Release/magic.node
      make: Leaving directory '/home/pi/MagicMirror/modules/MMM-synology-ds/node_modules/mmmagic/build'
      npm notice created a lockfile as package-lock.json. You should commit this file.
      added 12 packages from 23 contributors and audited 12 packages in 21.888s
      found 0 vulnerabilities
      
      pi@MagicMirror:~/MagicMirror/modules/MMM-synology-ds $ ^C
      pi@MagicMirror:~/MagicMirror/modules/MMM-synology-ds $ cd ..
      pi@MagicMirror:~/MagicMirror/modules $ cd ..
      pi@MagicMirror:~/MagicMirror $ npm start mm
      
      > magicmirror@2.11.0 start /home/pi/MagicMirror
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js "mm"
      
      [2020-04-27 19:59:42.738] [LOG]    Starting MagicMirror: v2.11.0
      [2020-04-27 19:59:42.745] [LOG]    Loading config ...
      [2020-04-27 19:59:42.751] [LOG]    Loading module helpers ...
      [2020-04-27 19:59:42.754] [LOG]    No helper found for module: MMM-Logging.
      [2020-04-27 19:59:42.757] [LOG]    No helper found for module: alert.
      [2020-04-27 19:59:42.798] [LOG]    Initializing new module helper ...
      [2020-04-27 19:59:42.799] [LOG]    Module helper loaded: updatenotification
      [2020-04-27 19:59:42.800] [LOG]    No helper found for module: clock.
      [2020-04-27 19:59:42.800] [LOG]    No helper found for module: MMM-OpenmapWeather.
      [2020-04-27 19:59:42.801] [LOG]    No helper found for module: weatherforecast.
      [2020-04-27 19:59:43.153] [LOG]    Initializing new module helper ...
      [2020-04-27 19:59:43.154] [LOG]    Module helper loaded: MMM-Tools
      [2020-04-27 19:59:43.155] [LOG]    No helper found for module: MMM-PlexNowPlaying.
      [2020-04-27 19:59:43.157] [LOG]    Initializing new module helper ...
      [2020-04-27 19:59:43.157] [LOG]    Module helper loaded: mmm-hue-lights
      [2020-04-27 19:59:43.159] [LOG]    Initializing new module helper ...
      [2020-04-27 19:59:43.160] [LOG]    Module helper loaded: MMM-homeassistant-sensors
      [2020-04-27 19:59:43.350] [LOG]    Initializing new module helper ...
      [2020-04-27 19:59:43.350] [LOG]    Module helper loaded: MMM-Hotword
      [2020-04-27 19:59:44.479] [LOG]    Initializing new module helper ...
      [2020-04-27 19:59:44.480] [LOG]    Module helper loaded: MMM-AssistantMk2
      [2020-04-27 19:59:44.481] [LOG]    Initializing new module helper ...
      [2020-04-27 19:59:44.482] [LOG]    Module helper loaded: MMM-Assistant2Display
      [2020-04-27 19:59:44.896] [LOG]    Initializing new module helper ...
      [2020-04-27 19:59:44.897] [LOG]    Module helper loaded: MMM-Parcel
      [2020-04-27 19:59:44.980] [ERROR]  WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-synology-ds/node_modules/mmmagic/build/Release/magic.node'
      was compiled against a different Node.js version using
      NODE_MODULE_VERSION 64. This version of Node.js requires
      NODE_MODULE_VERSION 73. Please try re-compiling or re-installing
      the module (for instance, using `npm rebuild` or `npm install`).
      [2020-04-27 19:59:44.981] [LOG]    Loading module helpers ...
      [2020-04-27 19:59:44.981] [LOG]    No helper found for module: MMM-Logging.
      [2020-04-27 19:59:44.982] [LOG]    No helper found for module: alert.
      [2020-04-27 19:59:44.983] [LOG]    Initializing new module helper ...
      [2020-04-27 19:59:44.983] [LOG]    Module helper loaded: updatenotification
      [2020-04-27 19:59:44.983] [LOG]    No helper found for module: clock.
      [2020-04-27 19:59:44.984] [LOG]    No helper found for module: MMM-OpenmapWeather.
      [2020-04-27 19:59:44.985] [LOG]    No helper found for module: weatherforecast.
      [2020-04-27 19:59:44.985] [LOG]    Initializing new module helper ...
      [2020-04-27 19:59:44.985] [LOG]    Module helper loaded: MMM-Tools
      [2020-04-27 19:59:44.986] [LOG]    No helper found for module: MMM-PlexNowPlaying.
      [2020-04-27 19:59:44.986] [LOG]    Initializing new module helper ...
      [2020-04-27 19:59:44.987] [LOG]    Module helper loaded: mmm-hue-lights
      [2020-04-27 19:59:44.987] [LOG]    Initializing new module helper ...
      [2020-04-27 19:59:44.987] [LOG]    Module helper loaded: MMM-homeassistant-sensors
      [2020-04-27 19:59:44.988] [LOG]    Initializing new module helper ...
      [2020-04-27 19:59:44.988] [LOG]    Module helper loaded: MMM-Hotword
      [2020-04-27 19:59:44.989] [LOG]    Initializing new module helper ...
      [2020-04-27 19:59:44.989] [LOG]    Module helper loaded: MMM-AssistantMk2
      [2020-04-27 19:59:44.989] [LOG]    Initializing new module helper ...
      [2020-04-27 19:59:44.990] [LOG]    Module helper loaded: MMM-Assistant2Display
      [2020-04-27 19:59:44.990] [LOG]    Initializing new module helper ...
      [2020-04-27 19:59:44.990] [LOG]    Module helper loaded: MMM-Parcel
      [2020-04-27 19:59:44.997] [ERROR]  App threw an error during load
      [2020-04-27 19:59:44.998] [ERROR]  Error: The module '/home/pi/MagicMirror/modules/MMM-synology-ds/node_modules/mmmagic/build/Release/magic.node'
      was compiled against a different Node.js version using
      NODE_MODULE_VERSION 64. This version of Node.js requires
      NODE_MODULE_VERSION 73. Please try re-compiling or re-installing
      the module (for instance, using `npm rebuild` or `npm install`).
          at process.func (electron/js2c/asar.js:138:31)
          at process.func [as dlopen] (electron/js2c/asar.js:138:31)
          at Object.Module._extensions..node (internal/modules/cjs/loader.js:828:18)
          at Object.func (electron/js2c/asar.js:138:31)
          at Object.func [as .node] (electron/js2c/asar.js:138:31)
          at Module.load (internal/modules/cjs/loader.js:645:32)
          at Function.Module._load (internal/modules/cjs/loader.js:560:12)
          at Module.require (internal/modules/cjs/loader.js:685:19)
          at require (internal/modules/cjs/helpers.js:16:16)
          at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-synology-ds/node_modules/mmmagic/lib/index.js:1:13)
      [2020-04-27 19:59:45.000] [LOG]    Whoops! There was an uncaught exception...
      [2020-04-27 19:59:45.000] [ERROR]  Error: The module '/home/pi/MagicMirror/modules/MMM-synology-ds/node_modules/mmmagic/build/Release/magic.node'
      was compiled against a different Node.js version using
      NODE_MODULE_VERSION 64. This version of Node.js requires
      NODE_MODULE_VERSION 73. Please try re-compiling or re-installing
      the module (for instance, using `npm rebuild` or `npm install`).
          at process.func (electron/js2c/asar.js:138:31)
          at process.func [as dlopen] (electron/js2c/asar.js:138:31)
          at Object.Module._extensions..node (internal/modules/cjs/loader.js:828:18)
          at Object.func (electron/js2c/asar.js:138:31)
          at Object.func [as .node] (electron/js2c/asar.js:138:31)
          at Module.load (internal/modules/cjs/loader.js:645:32)
          at Function.Module._load (internal/modules/cjs/loader.js:560:12)
          at Module.require (internal/modules/cjs/loader.js:685:19)
          at require (internal/modules/cjs/helpers.js:16:16)
          at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-synology-ds/node_modules/mmmagic/lib/index.js:1:13)
      [2020-04-27 19:59:45.004] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      [2020-04-27 19:59:45.004] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      [2020-04-27 19:59:45.109] [LOG]    Launching application.
      pi@MagicMirror:~/MagicMirror $
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @JohnBachini
        last edited by

        @JohnBachini yeh, looks like they have embedded a version of node in their package… don’t know how to fix that

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          JohnBachini @sdetweil
          last edited by

          @sdetweil

          oh ok, never mind, thanks for trying to help. :thumbs_up:

          just one question for my own peace of mind and try not get too technical, why does it work in servernode, what’s the difference ?

          Thanks again.

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

            @JohnBachini servermode doesn’t load the modulename.js file, which is what drags in the rest of the stuff…

            if u run servermode and then open a browser to the server ip, it will fail the same way

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              JohnBachini @sdetweil
              last edited by

              @sdetweil

              But it doesnt ,it works fine if i servermode and then connect via browser, no errors console at all and the module works as it connect to synology and reports as expected.
              Very strange.

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

                @JohnBachini is the browser ON the same system?

                how about opening chromium-browser on the same server to the server

                electron is all javascript…

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  JohnBachini @sdetweil
                  last edited by

                  @sdetweil

                  Just tried it and it works in chromium on server !?

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

                    @JohnBachini different version of javascript inside chromium…

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    J 1 Reply Last reply Reply Quote 0
                    • J Offline
                      JohnBachini @sdetweil
                      last edited by

                      @sdetweil

                      oh i see… Thanks again.

                      1 Reply Last reply Reply Quote 0
                      • bheplerB Offline
                        bhepler Module Developer
                        last edited by bhepler

                        Please use the markdown features of the forum when posting code and/or error messages.

                        lavolp3L 1 Reply Last reply Reply Quote 0
                        • lavolp3L Offline
                          lavolp3 Module Developer @bhepler
                          last edited by

                          @bhepler Added code tags for better readability

                          How to troubleshoot modules
                          MMM-soccer v2, MMM-AVStock

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

                            try this

                            cd ~/MagicMirror/modules/MMM-synology-ds
                            npm install mmmagic
                            

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            J 1 Reply Last reply Reply Quote 0
                            • J Offline
                              JohnBachini @sdetweil
                              last edited by

                              @sdetweil

                              Tried , unfortunately doesn’t seem to have made any difference.

                              Thanks

                              pi@MagicMirror:~/MagicMirror/modules/MMM-synology-ds $ npm install mmmagic

                              > mmmagic@0.5.3 install /home/pi/MagicMirror/modules/MMM-synology-ds/node_modules/mmmagic
                              > node-gyp rebuild
                              
                              make: Entering directory '/home/pi/MagicMirror/modules/MMM-synology-ds/node_modules/mmmagic/build'
                                CC(target) Release/obj.target/libmagic/deps/libmagic/src/apprentice.o
                                CC(target) Release/obj.target/libmagic/deps/libmagic/src/apptype.o
                                CC(target) Release/obj.target/libmagic/deps/libmagic/src/ascmagic.o
                                CC(target) Release/obj.target/libmagic/deps/libmagic/src/cdf.o
                                CC(target) Release/obj.target/libmagic/deps/libmagic/src/cdf_time.o
                                CC(target) Release/obj.target/libmagic/deps/libmagic/src/compress.o
                                CC(target) Release/obj.target/libmagic/deps/libmagic/src/der.o
                                CC(target) Release/obj.target/libmagic/deps/libmagic/src/encoding.o
                                CC(target) Release/obj.target/libmagic/deps/libmagic/src/fsmagic.o
                                CC(target) Release/obj.target/libmagic/deps/libmagic/src/funcs.o
                                CC(target) Release/obj.target/libmagic/deps/libmagic/src/is_tar.o
                                CC(target) Release/obj.target/libmagic/deps/libmagic/src/magic.o
                                CC(target) Release/obj.target/libmagic/deps/libmagic/src/print.o
                                CC(target) Release/obj.target/libmagic/deps/libmagic/src/readcdf.o
                                CC(target) Release/obj.target/libmagic/deps/libmagic/src/readelf.o
                                CC(target) Release/obj.target/libmagic/deps/libmagic/src/softmagic.o
                                CC(target) Release/obj.target/libmagic/deps/libmagic/src/fmtcheck.o
                                CC(target) Release/obj.target/libmagic/deps/libmagic/src/strlcat.o
                                CC(target) Release/obj.target/libmagic/deps/libmagic/src/strlcpy.o
                                AR(target) Release/obj.target/deps/libmagic/magic.a
                                COPY Release/magic.a
                                CXX(target) Release/obj.target/magic/src/binding.o
                              In file included from ../src/binding.cc:3:
                              ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
                              ../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                                   , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                                                            ^
                              ../src/binding.cc: In static member function ‘static void Magic::DetectFile(const Nan::FunctionCallbackInfo<v8::Value>& ’:
                              ../src/binding.cc:184:59: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                                                                (uv_after_work_cb)Magic::DetectAfter);
                                                                                         ^~~~~~~~~~~
                              ../src/binding.cc: In static member function ‘static void Magic::Detect(const Nan::FunctionCallbackInfo<v8::Value>&)’:
                              ../src/binding.cc:217:59: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                                                                (uv_after_work_cb)Magic::DetectAfter);
                                                                                         ^~~~~~~~~~~
                              In file included from ../src/binding.cc:1:
                              ../src/binding.cc: At global scope:
                              /home/pi/.cache/node-gyp/10.20.0/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                                     (node::addon_register_func) (regfunc),                          \
                                                                         ^
                              /home/pi/.cache/node-gyp/10.20.0/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
                                 NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                                 ^~~~~~~~~~~~~
                              ../src/binding.cc:415:3: note: in expansion of macro ‘NODE_MODULE’
                                 NODE_MODULE(magic, init);
                                 ^~~~~~~~~~~
                              In file included from /home/pi/.cache/node-gyp/10.20.0/include/node/node.h:63,
                                               from ../src/binding.cc:1:
                              /home/pi/.cache/node-gyp/10.20.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
                              /home/pi/.cache/node-gyp/10.20.0/include/node/node_object_wrap.h:84:78:   required from here
                              /home/pi/.cache/node-gyp/10.20.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                              reinterpret_cast<Callback>(callback), type);
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                              /home/pi/.cache/node-gyp/10.20.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
                              ../../nan/nan_object_wrap.h:65:61:   required from here
                              /home/pi/.cache/node-gyp/10.20.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callbac ’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                SOLINK_MODULE(target) Release/obj.target/magic.node
                                COPY Release/magic.node
                              make: Leaving directory '/home/pi/MagicMirror/modules/MMM-synology-ds/node_modules/mmmagic/build'
                              + mmmagic@0.5.3
                              updated 1 package and audited 14 packages in 18.498s
                              found 0 vulnerabilities
                              

                              pi@MagicMirror:~/MagicMirror/modules/MMM-synology-ds $ cd …
                              pi@MagicMirror:~/MagicMirror/modules $ cd …
                              pi@MagicMirror:~/MagicMirror $ npm start mm

                              > magicmirror@2.11.0 start /home/pi/MagicMirror
                              > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js "mm"
                              
                              [2020-04-28 14:26:28.842] [LOG]    Starting MagicMirror: v2.11.0
                              [2020-04-28 14:26:28.849] [LOG]    Loading config ...
                              [2020-04-28 14:26:28.855] [LOG]    Loading module helpers ...
                              [2020-04-28 14:26:28.857] [LOG]    No helper found for module: MMM-Logging.
                              [2020-04-28 14:26:28.860] [LOG]    No helper found for module: alert.
                              [2020-04-28 14:26:28.895] [LOG]    Initializing new module helper ...
                              [2020-04-28 14:26:28.896] [LOG]    Module helper loaded: updatenotification
                              [2020-04-28 14:26:28.896] [LOG]    No helper found for module: clock.
                              [2020-04-28 14:26:28.897] [LOG]    No helper found for module: MMM-OpenmapWeather.
                              [2020-04-28 14:26:28.898] [LOG]    No helper found for module: weatherforecast.
                              [2020-04-28 14:26:29.198] [LOG]    Initializing new module helper ...
                              [2020-04-28 14:26:29.199] [LOG]    Module helper loaded: MMM-Tools
                              [2020-04-28 14:26:29.200] [LOG]    No helper found for module: MMM-PlexNowPlaying.
                              [2020-04-28 14:26:29.202] [LOG]    Initializing new module helper ...
                              [2020-04-28 14:26:29.202] [LOG]    Module helper loaded: mmm-hue-lights
                              [2020-04-28 14:26:29.204] [LOG]    Initializing new module helper ...
                              [2020-04-28 14:26:29.205] [LOG]    Module helper loaded: MMM-homeassistant-sensors
                              [2020-04-28 14:26:29.360] [LOG]    Initializing new module helper ...
                              [2020-04-28 14:26:29.361] [LOG]    Module helper loaded: MMM-Hotword
                              [2020-04-28 14:26:30.447] [LOG]    Initializing new module helper ...
                              [2020-04-28 14:26:30.447] [LOG]    Module helper loaded: MMM-AssistantMk2
                              [2020-04-28 14:26:30.449] [LOG]    Initializing new module helper ...
                              [2020-04-28 14:26:30.449] [LOG]    Module helper loaded: MMM-Assistant2Display
                              [2020-04-28 14:26:30.836] [LOG]    Initializing new module helper ...
                              [2020-04-28 14:26:30.836] [LOG]    Module helper loaded: MMM-Parcel
                              [2020-04-28 14:26:30.909] [ERROR]  WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-synology-ds/node_modules/mmmagic/build/Release/magic.node'
                              was compiled against a different Node.js version using
                              NODE_MODULE_VERSION 64. This version of Node.js requires
                              NODE_MODULE_VERSION 73. Please try re-compiling or re-installing
                              the module (for instance, using `npm rebuild` or `npm install`).
                              [2020-04-28 14:26:30.910] [LOG]    Loading module helpers ...
                              [2020-04-28 14:26:30.911] [LOG]    No helper found for module: MMM-Logging.
                              [2020-04-28 14:26:30.911] [LOG]    No helper found for module: alert.
                              [2020-04-28 14:26:30.912] [LOG]    Initializing new module helper ...
                              [2020-04-28 14:26:30.912] [LOG]    Module helper loaded: updatenotification
                              [2020-04-28 14:26:30.912] [LOG]    No helper found for module: clock.
                              [2020-04-28 14:26:30.913] [LOG]    No helper found for module: MMM-OpenmapWeather.
                              [2020-04-28 14:26:30.913] [LOG]    No helper found for module: weatherforecast.
                              [2020-04-28 14:26:30.914] [LOG]    Initializing new module helper ...
                              [2020-04-28 14:26:30.914] [LOG]    Module helper loaded: MMM-Tools
                              [2020-04-28 14:26:30.915] [LOG]    No helper found for module: MMM-PlexNowPlaying.
                              [2020-04-28 14:26:30.915] [LOG]    Initializing new module helper ...
                              [2020-04-28 14:26:30.915] [LOG]    Module helper loaded: mmm-hue-lights
                              [2020-04-28 14:26:30.916] [LOG]    Initializing new module helper ...
                              [2020-04-28 14:26:30.916] [LOG]    Module helper loaded: MMM-homeassistant-sensors
                              [2020-04-28 14:26:30.916] [LOG]    Initializing new module helper ...
                              [2020-04-28 14:26:30.916] [LOG]    Module helper loaded: MMM-Hotword
                              [2020-04-28 14:26:30.917] [LOG]    Initializing new module helper ...
                              [2020-04-28 14:26:30.917] [LOG]    Module helper loaded: MMM-AssistantMk2
                              [2020-04-28 14:26:30.918] [LOG]    Initializing new module helper ...
                              [2020-04-28 14:26:30.918] [LOG]    Module helper loaded: MMM-Assistant2Display
                              [2020-04-28 14:26:30.918] [LOG]    Initializing new module helper ...
                              [2020-04-28 14:26:30.918] [LOG]    Module helper loaded: MMM-Parcel
                              [2020-04-28 14:26:30.924] [ERROR]  App threw an error during load
                              [2020-04-28 14:26:30.925] [ERROR]  Error: The module '/home/pi/MagicMirror/modules/MMM-synology-ds/node_modules/mmmagic/build/Release/magic.node'
                              was compiled against a different Node.js version using
                              NODE_MODULE_VERSION 64. This version of Node.js requires
                              NODE_MODULE_VERSION 73. Please try re-compiling or re-installing
                              the module (for instance, using `npm rebuild` or `npm install`).
                                  at process.func (electron/js2c/asar.js:138:31)
                                  at process.func [as dlopen] (electron/js2c/asar.js:138:31)
                                  at Object.Module._extensions..node (internal/modules/cjs/loader.js:828:18)
                                  at Object.func (electron/js2c/asar.js:138:31)
                                  at Object.func [as .node] (electron/js2c/asar.js:138:31)
                                  at Module.load (internal/modules/cjs/loader.js:645:32)
                                  at Function.Module._load (internal/modules/cjs/loader.js:560:12)
                                  at Module.require (internal/modules/cjs/loader.js:685:19)
                                  at require (internal/modules/cjs/helpers.js:16:16)
                                  at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-synology-ds/node_modules/mmmagic/lib/index.js:1:13)
                              [2020-04-28 14:26:30.926] [LOG]    Whoops! There was an uncaught exception...
                              [2020-04-28 14:26:30.926] [ERROR]  Error: The module '/home/pi/MagicMirror/modules/MMM-synology-ds/node_modules/mmmagic/build/Release/magic.node'
                              was compiled against a different Node.js version using
                              NODE_MODULE_VERSION 64. This version of Node.js requires
                              NODE_MODULE_VERSION 73. Please try re-compiling or re-installing
                              the module (for instance, using `npm rebuild` or `npm install`).
                                  at process.func (electron/js2c/asar.js:138:31)
                                  at process.func [as dlopen] (electron/js2c/asar.js:138:31)
                                  at Object.Module._extensions..node (internal/modules/cjs/loader.js:828:18)
                                  at Object.func (electron/js2c/asar.js:138:31)
                                  at Object.func [as .node] (electron/js2c/asar.js:138:31)
                                  at Module.load (internal/modules/cjs/loader.js:645:32)
                                  at Function.Module._load (internal/modules/cjs/loader.js:560:12)
                                  at Module.require (internal/modules/cjs/loader.js:685:19)
                                  at require (internal/modules/cjs/helpers.js:16:16)
                                  at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-synology-ds/node_modules/mmmagic/lib/index.js:1:13)
                              [2020-04-28 14:26:30.930] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                              [2020-04-28 14:26:30.930] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                              [2020-04-28 14:26:31.008] [LOG]    Launching application.
                              ^C[2020-04-28 14:26:54.721] [LOG]    Shutting down server...
                              [2020-04-28 14:26:54.725] [LOG]    Stopping module helper: updatenotification
                              [2020-04-28 14:26:54.726] [LOG]    Stopping module helper: MMM-Tools
                              [2020-04-28 14:26:54.726] [LOG]    Stopping module helper: mmm-hue-lights
                              [2020-04-28 14:26:54.727] [LOG]    Stopping module helper: MMM-homeassistant-sensors
                              [2020-04-28 14:26:54.728] [LOG]    Stopping module helper: MMM-Hotword
                              [2020-04-28 14:26:54.728] [LOG]    Stopping module helper: MMM-AssistantMk2
                              [2020-04-28 14:26:54.729] [LOG]    Stopping module helper: MMM-Assistant2Display
                              [2020-04-28 14:26:54.730] [LOG]    Stopping module helper: MMM-Parcel
                              [2020-04-28 14:26:54.730] [LOG]    Stopping module helper: updatenotification
                              [2020-04-28 14:26:54.731] [LOG]    Stopping module helper: MMM-Tools
                              [2020-04-28 14:26:54.731] [LOG]    Stopping module helper: mmm-hue-lights
                              [2020-04-28 14:26:54.732] [LOG]    Stopping module helper: MMM-homeassistant-sensors
                              [2020-04-28 14:26:54.733] [LOG]    Stopping module helper: MMM-Hotword
                              [2020-04-28 14:26:54.733] [LOG]    Stopping module helper: MMM-AssistantMk2
                              [2020-04-28 14:26:54.734] [LOG]    Stopping module helper: MMM-Assistant2Display
                              [2020-04-28 14:26:54.734] [LOG]    Stopping module helper: MMM-Parcel
                              

                              pi@MagicMirror:~/MagicMirror $

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

                                @JohnBachini what a pain

                                try this

                                cd ~/MagicMirror/modules/MMM-synology-ds/node_modules/mmmagic
                                # force rebuild to the version of node electron is running
                                ~/MagicMirror/node_modules/.bin/electron-rebuild
                                

                                try again

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                J 1 Reply Last reply Reply Quote 2
                                • J Offline
                                  JohnBachini @sdetweil
                                  last edited by

                                  @sdetweil

                                  Wow… you got it working… thanks a lot for that.!! :thumbs_up:

                                  Think there were a few people who couldn’t get this module working so hopefully this will of solved it for them as well.

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

                                    @JohnBachini thanks for the feedback… looks like you gotta go ALL the way into the failing folder. sheesh…

                                    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
                                      last edited by

                                      I updated the two issues in this module on github that reference this problem with the fix instructions here
                                      so eventually the google search will link them together

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      J 1 Reply Last reply Reply Quote 0
                                      • J Offline
                                        JohnBachini @sdetweil
                                        last edited by

                                        @sdetweil

                                        Hi,

                                        I bet you thought you’d heard the last of this, so you know how you managed to get it all working. Well the problem now is the complete opposite. In that now it doesn’t work node servermode. ?
                                        I thought i was going mad and must have been running it incorrectly :thinking_face:

                                        Any ideas ?

                                        Thanks

                                        pi@MagicMirror:~ $ cd MagicMirror/
                                        pi@MagicMirror:~/MagicMirror $ node serveronly

                                        [2020-04-29 14:24:42.858] [LOG]    Starting MagicMirror: v2.11.0
                                        [2020-04-29 14:24:42.868] [LOG]    Loading config ...
                                        [2020-04-29 14:24:42.873] [LOG]    Loading module helpers ...
                                        [2020-04-29 14:24:42.874] [LOG]    No helper found for module: MMM-Logging.
                                        [2020-04-29 14:24:42.875] [LOG]    No helper found for module: alert.
                                        [2020-04-29 14:24:42.911] [LOG]    Initializing new module helper ...
                                        [2020-04-29 14:24:42.912] [LOG]    Module helper loaded: updatenotification
                                        [2020-04-29 14:24:42.912] [LOG]    No helper found for module: clock.
                                        [2020-04-29 14:24:42.913] [LOG]    No helper found for module: MMM-OpenmapWeather.
                                        [2020-04-29 14:24:42.913] [LOG]    No helper found for module: weatherforecast.
                                        [2020-04-29 14:24:43.238] [LOG]    Initializing new module helper ...
                                        [2020-04-29 14:24:43.238] [LOG]    Module helper loaded: MMM-Tools
                                        [2020-04-29 14:24:43.239] [LOG]    No helper found for module: MMM-PlexNowPlaying.
                                        [2020-04-29 14:24:43.240] [LOG]    Initializing new module helper ...
                                        [2020-04-29 14:24:43.241] [LOG]    Module helper loaded: mmm-hue-lights
                                        [2020-04-29 14:24:43.243] [LOG]    Initializing new module helper ...
                                        [2020-04-29 14:24:43.243] [LOG]    Module helper loaded: MMM-homeassistant-sensors
                                        [2020-04-29 14:24:43.366] [LOG]    Initializing new module helper ...
                                        [2020-04-29 14:24:43.367] [LOG]    Module helper loaded: MMM-Hotword
                                        [2020-04-29 14:24:44.467] [LOG]    Initializing new module helper ...
                                        [2020-04-29 14:24:44.468] [LOG]    Module helper loaded: MMM-AssistantMk2
                                        [2020-04-29 14:24:44.470] [LOG]    Initializing new module helper ...
                                        [2020-04-29 14:24:44.470] [LOG]    Module helper loaded: MMM-Assistant2Display
                                        [2020-04-29 14:24:44.849] [LOG]    Initializing new module helper ...
                                        [2020-04-29 14:24:44.850] [LOG]    Module helper loaded: MMM-Parcel
                                        [2020-04-29 14:24:44.899] [ERROR]  WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-synology-ds/node_modules/mmmagic/build/Release/magic.node'
                                        was compiled against a different Node.js version using
                                        NODE_MODULE_VERSION 73. This version of Node.js requires
                                        NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
                                        the module (for instance, using `npm rebuild` or `npm install`).
                                        [2020-04-29 14:24:44.900] [LOG]    Loading module helpers ...
                                        [2020-04-29 14:24:44.901] [LOG]    No helper found for module: MMM-Logging.
                                        [2020-04-29 14:24:44.902] [LOG]    No helper found for module: alert.
                                        [2020-04-29 14:24:44.902] [LOG]    Initializing new module helper ...
                                        [2020-04-29 14:24:44.903] [LOG]    Module helper loaded: updatenotification
                                        [2020-04-29 14:24:44.903] [LOG]    No helper found for module: clock.
                                        [2020-04-29 14:24:44.904] [LOG]    No helper found for module: MMM-OpenmapWeather.
                                        [2020-04-29 14:24:44.904] [LOG]    No helper found for module: weatherforecast.
                                        [2020-04-29 14:24:44.905] [LOG]    Initializing new module helper ...
                                        [2020-04-29 14:24:44.906] [LOG]    Module helper loaded: MMM-Tools
                                        [2020-04-29 14:24:44.906] [LOG]    No helper found for module: MMM-PlexNowPlaying.
                                        [2020-04-29 14:24:44.907] [LOG]    Initializing new module helper ...
                                        [2020-04-29 14:24:44.907] [LOG]    Module helper loaded: mmm-hue-lights
                                        [2020-04-29 14:24:44.908] [LOG]    Initializing new module helper ...
                                        [2020-04-29 14:24:44.908] [LOG]    Module helper loaded: MMM-homeassistant-sensors
                                        [2020-04-29 14:24:44.909] [LOG]    Initializing new module helper ...
                                        [2020-04-29 14:24:44.910] [LOG]    Module helper loaded: MMM-Hotword
                                        [2020-04-29 14:24:44.910] [LOG]    Initializing new module helper ...
                                        [2020-04-29 14:24:44.911] [LOG]    Module helper loaded: MMM-AssistantMk2
                                        [2020-04-29 14:24:44.911] [LOG]    Initializing new module helper ...
                                        [2020-04-29 14:24:44.912] [LOG]    Module helper loaded: MMM-Assistant2Display
                                        [2020-04-29 14:24:44.912] [LOG]    Initializing new module helper ...
                                        [2020-04-29 14:24:44.913] [LOG]    Module helper loaded: MMM-Parcel
                                        [2020-04-29 14:24:44.920] [LOG]    Whoops! There was an uncaught exception...
                                        [2020-04-29 14:24:44.920] [ERROR]  Error: The module '/home/pi/MagicMirror/modules/MMM-synology-ds/node_modules/mmmagic/build/Release/magic.node'
                                        was compiled against a different Node.js version using
                                        NODE_MODULE_VERSION 73. This version of Node.js requires
                                        NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
                                        the module (for instance, using `npm rebuild` or `npm install`).
                                            at Object.Module._extensions..node (internal/modules/cjs/loader.js:807:18)
                                            at Module.load (internal/modules/cjs/loader.js:653:32)
                                            at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
                                            at Function.Module._load (internal/modules/cjs/loader.js:585:3)
                                            at Module.require (internal/modules/cjs/loader.js:692:17)
                                            at require (internal/modules/cjs/helpers.js:25:18)
                                            at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-synology-ds/node_modules/mmmagic/lib/index.js:1:13)
                                            at Module._compile (internal/modules/cjs/loader.js:778:30)
                                            at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
                                            at Module.load (internal/modules/cjs/loader.js:653:32)
                                        [2020-04-29 14:24:44.924] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                                        [2020-04-29 14:24:44.925] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                                        pi@MagicMirror:~/MagicMirror $
                                        
                                        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