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.

    Cannot find module 'node-fetch' error with MMM-SoccerLiveScore

    Scheduled Pinned Locked Moved Solved Troubleshooting
    34 Posts 5 Posters 16.5k Views 5 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.
    • karsten13K Offline
      karsten13 @sdetweil
      last edited by

      @sdetweil

      he must restart the container, this cannot be done from inside the container

      so how was the container started? With docker compose oder docker run ... or?

      S C 2 Replies Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @karsten13
        last edited by

        @karsten13 this

        libgobject-2.0.so.0: cannot open shared object file: No such file or directory                                                           
        

        will be fixed by container restart ?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @sdetweil

          I don’t now, the old electron process is still running

          but we now nothing, how he started, in server only or with electron, which architecture, which host os, which hardware …

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            codac @karsten13
            last edited by

            @karsten13

            docker run
            
            1 Reply Last reply Reply Quote 0
            • C Offline
              codac @sdetweil
              last edited by

              @sdetweil
              This error only comes up when trying to restart MM inside the docker.
              When restarting the docker, this error wont show up.

              1 Reply Last reply Reply Quote 1
              • C Offline
                codac @karsten13
                last edited by

                @karsten13
                This is a server only setup. Docker runs on “Container Manager” of Synology. The Synology is a DS420+ running on an INTEL Celeron J4025. The OS is DSM of course.

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

                  @codac

                  and how do you start/stop the container? With a WebUI or per command line?

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    codac @karsten13
                    last edited by

                    @karsten13 WebUI

                    S karsten13K 2 Replies Last reply Reply Quote 0
                    • S Do not disturb
                      sdetweil @codac
                      last edited by

                      @codac and I think the electron error is just noise, as you must be running server only mode, whcih doesn’t use electron

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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

                        @codac

                        I don’t know this WebUI, you have to restart the container or stop and start again, whatever the WebUI provides

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

                          @sdetweil

                          and I think the electron error is just noise, as you must be running server only mode, whcih doesn’t use electron

                          yes, there is no electron installed

                          1 Reply Last reply Reply Quote 0
                          • C Offline
                            codac @karsten13
                            last edited by

                            @karsten13 well restarting / stopping / starting is no problem. But the error just remains and doesnt go away…

                            S 1 Reply Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @codac
                              last edited by

                              @codac which error? the node-fetch or the lib error?

                              (@karsten13 we installed electron, my mistake… in docker, doah! )

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              C 1 Reply Last reply Reply Quote 0
                              • C Offline
                                codac @sdetweil
                                last edited by

                                @sdetweil the node-fetch error

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

                                  @codac

                                  if you are using https://github.com/0m4r/MMM-SoccerLiveScore the module contains the missing node-fetch so you should do a git pull in the module folder and try again (which means restart the container)

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Do not disturb
                                    sdetweil @karsten13
                                    last edited by

                                    @karsten13 did they fix the module? I didn’t check

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

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

                                      @sdetweil

                                      you are right, they “fixed” it in devDependencies instead in dependencies …

                                      then git pull is useless, you have to install the missing library in the module folder as sam already explained above

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

                                        I created a PR to fix this, let’s see when @0m4r accept it.

                                        S 0m4r0 2 Replies Last reply Reply Quote 1
                                        • S Do not disturb
                                          sdetweil @KristjanESPERANTO
                                          last edited by

                                          @KristjanESPERANTO well, npm install would have installed the devDependencies too…

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

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

                                            @sdetweil Sure. But my PR removes node-fetch, so npm install is no longer necessary for this module.

                                            1 Reply Last reply Reply Quote 1

                                            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