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.

    Can't install MMM-Navigate

    Scheduled Pinned Locked Moved Troubleshooting
    13 Posts 3 Posters 2.9k Views 3 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.
    • K Offline
      keineAhnung123
      last edited by

      @sdetweil

      pi@raspberrypi:~ $ node -v
      v9.11.2
      pi@raspberrypi:~ $ npm -v
      6.14.10
      

      node seems to be outdated?
      I will try to update it

      K 1 Reply Last reply Reply Quote 0
      • K Offline
        keineAhnung123 @keineAhnung123
        last edited by

        @sdetweil

        sudo apt remove nodejs
        sudo apt install nodejs
        

        still Version 9.11.2 :(

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

          @keineAhnung123 install nvm, and then use nvm to install node 10.23

          https://www.sitepoint.com/quick-tip-multiple-versions-node-nvm/

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil
            Thank you, that worked.
            Is there a reason why 10.23 and not the newest 14.15.3 or 15.0?

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

              @keineAhnung123 cause we haven’t tested w those levels yet

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • M Offline
                matze86 @sdetweil
                last edited by

                @sdetweil

                I tried to start my Mirror in server mode and than i got this error:

                [17.03.2021 20:17.36.506] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/epoll/build/Release/epoll.node'
                was compiled against a different Node.js version using
                NODE_MODULE_VERSION 76. This version of Node.js requires
                NODE_MODULE_VERSION 83. Please try re-compiling or re-installing
                the module (for instance, using `npm rebuild` or `npm install`).
                [17.03.2021 20:17.36.508] [LOG]   Loading module helpers ...
                [17.03.2021 20:17.36.509] [LOG]   No helper found for module: alert.
                [17.03.2021 20:17.36.510] [LOG]   Initializing new module helper ...
                [17.03.2021 20:17.36.510] [LOG]   Module helper loaded: updatenotification
                [17.03.2021 20:17.36.511] [LOG]   No helper found for module: clock.
                [17.03.2021 20:17.36.517] [ERROR] Whoops! There was an uncaught exception...
                [17.03.2021 20:17.36.522] [ERROR] Error: The module '/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/epoll/build/Release/epoll.node'
                was compiled against a different Node.js version using
                NODE_MODULE_VERSION 76. This version of Node.js requires
                NODE_MODULE_VERSION 83. 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:1122:18)
                    at Module.load (internal/modules/cjs/loader.js:928:32)
                    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
                    at Module.require (internal/modules/cjs/loader.js:952:19)
                    at require (internal/modules/cjs/helpers.js:88:18)
                    at bindings (/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/bindings/bindings.js:112:48)
                    at /home/pi/MagicMirror/modules/MMM-Navigate/node_modules/epoll/epoll.js:7:31
                    at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/epoll/epoll.js:15:3)
                    at Module._compile (internal/modules/cjs/loader.js:1063:30)
                    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
                [17.03.2021 20:17.36.525] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                [17.03.2021 20:17.36.526] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                

                in “non-server-mode” it works very well.

                i reinstalled the module , npm, node.js, electron, but it still doesn’t work

                Any idea?

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

                  @matze86 right. the library epoll is compiled for electron, but not just node. (server mode)

                  per the messages, I would try npm rebuild

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  M 1 Reply Last reply Reply Quote 0
                  • M Offline
                    matze86 @sdetweil
                    last edited by

                    @sdetweil

                    npm rebuild failed:

                    pi@raspberrypi:~/MagicMirror/modules/MMM-Navigate $ npm rebuild
                    npm ERR! code 1
                    npm ERR! path /home/pi/MagicMirror/modules/MMM-Navigate/node_modules/epoll
                    npm ERR! command failed
                    npm ERR! command sh -c node-gyp rebuild
                    npm ERR! gyp info it worked if it ends with ok
                    npm ERR! gyp info using node-gyp@7.1.2
                    npm ERR! gyp info using node@14.16.0 | linux | arm
                    npm ERR! gyp info find Python using Python version 3.7.3 found at "/usr/bin/python3"
                    npm ERR! gyp info spawn /usr/bin/python3
                    npm ERR! gyp info spawn args [
                    npm ERR! gyp info spawn args   '/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/node-gyp/gyp/gyp_main.py',
                    npm ERR! gyp info spawn args   'binding.gyp',
                    npm ERR! gyp info spawn args   '-f',
                    npm ERR! gyp info spawn args   'make',
                    npm ERR! gyp info spawn args   '-I',
                    npm ERR! gyp info spawn args   '/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/epoll/build/config.gypi',
                    npm ERR! gyp info spawn args   '-I',
                    npm ERR! gyp info spawn args   '/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/node-gyp/addon.gypi',
                    npm ERR! gyp info spawn args   '-I',
                    npm ERR! gyp info spawn args   '/home/pi/.cache/node-gyp/14.16.0/include/node/common.gypi',
                    npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
                    npm ERR! gyp info spawn args   '-Dvisibility=default',
                    npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/pi/.cache/node-gyp/14.16.0',
                    npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/node-gyp',
                    npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/pi/.cache/node-gyp/14.16.0/<(target_arch)/node.lib',
                    npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/epoll',
                    npm ERR! gyp info spawn args   '-Dnode_engine=v8',
                    npm ERR! gyp info spawn args   '--depth=.',
                    npm ERR! gyp info spawn args   '--no-parallel',
                    npm ERR! gyp info spawn args   '--generator-output',
                    npm ERR! gyp info spawn args   'build',
                    npm ERR! gyp info spawn args   '-Goutput_dir=.'
                    npm ERR! gyp info spawn args ]
                    npm ERR! gyp ERR! build error 
                    npm ERR! gyp ERR! stack Error: You must run `node-gyp configure` first!
                    npm ERR! gyp ERR! stack     at ReadFileContext.<anonymous> (/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/node-gyp/lib/build.js:43:20)
                    npm ERR! gyp ERR! stack     at ReadFileContext.callback (/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/graceful-fs/graceful-fs.js:123:16)
                    npm ERR! gyp ERR! stack     at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:273:13)
                    npm ERR! gyp ERR! System Linux 5.10.11-v7l+
                    npm ERR! gyp ERR! command "/usr/local/bin/node" "/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/.bin/node-gyp" "rebuild"
                    npm ERR! gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-Navigate/node_modules/epoll
                    npm ERR! gyp ERR! node -v v14.16.0
                    npm ERR! gyp ERR! node-gyp -v v7.1.2
                    npm ERR! gyp ERR! not ok
                    
                    npm ERR! A complete log of this run can be found in:
                    npm ERR!     /home/pi/.npm/_logs/2021-03-17T21_03_25_216Z-debug.log
                    
                    

                    i tried with npm install (a second time), but this doesn’t change anything

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

                      @matze86 sorry. no idea from here.i had a similar problem in one of my modules.
                      I rewrote part of it to eliminate the troublesome library

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        matze86 @sdetweil
                        last edited by

                        @sdetweil

                        now i reinstalled raspberry os and still got the same error…

                        [19.03.2021 23:16.00.366] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/epoll/build/Release/epoll.node'
                        was compiled against a different Node.js version using
                        NODE_MODULE_VERSION 76. 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`).
                        [19.03.2021 23:16.00.367] [LOG]   Loading module helpers ...
                        [19.03.2021 23:16.00.368] [LOG]   No helper found for module: alert.
                        [19.03.2021 23:16.00.368] [LOG]   Initializing new module helper ...
                        [19.03.2021 23:16.00.369] [LOG]   Module helper loaded: updatenotification
                        [19.03.2021 23:16.00.370] [LOG]   No helper found for module: clock.
                        [19.03.2021 23:16.00.374] [ERROR] Whoops! There was an uncaught exception...
                        [19.03.2021 23:16.00.378] [ERROR] Error: The module '/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/epoll/build/Release/epoll.node'
                        was compiled against a different Node.js version using
                        NODE_MODULE_VERSION 76. 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 bindings (/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/bindings/bindings.js:112:48)
                            at module.exports._ (/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/epoll/epoll.js:7:31)
                            at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/epoll/epoll.js:15:3)
                            at Module._compile (internal/modules/cjs/loader.js:778:30)
                        [19.03.2021 23:16.00.379] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                        [19.03.2021 23:16.00.380] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                        
                        
                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          sdetweil @matze86
                          last edited by sdetweil

                          @matze86 do this

                          from the MMM-Navigate folder

                          npm rebuild epoll --update-binary
                          

                          worked for me

                          note that this compiled version won’t work if you use electron now…

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

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