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-NOAAForecast install fails

    Scheduled Pinned Locked Moved Solved Troubleshooting
    5 Posts 2 Posters 78 Views 2 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.
    • R Offline
      RonR
      last edited by

      I’ve tried several times to install MMM-NOAAForecast and it has failed every time. When I restart MM it shows “Loading” and that is all. I went back in the logs for this last try and found the following:

      [2025-11-08 16:30:50.514] [LOG]   Initializing new module helper ... 
      [2025-11-08 16:30:50.514] [LOG]   Module helper loaded: calendar 
      [2025-11-08 16:30:50.514] [ERROR] Error when loading MMM-NOAAForecast: Cannot find module 'needle'
      Require stack:
      - /opt/magic_mirror/modules/MMM-NOAAForecast/node_helper.js
      - /opt/magic_mirror/js/app.js
      - /opt/magic_mirror/serveronly/index.js 
      [2025-11-08 16:30:50.516] [LOG]   Initializing new module helper ...
      
      

      I was using MMM-CONFIG installer to do the install. This is MM on Docker. Dell Inspiron running Ubuntu 24.02.

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

        @RonR yes, this is a module problem… the module does not document that it NEEDS needle
        it has no package.json, which documents the dependencies…

        this highlights a gap in the MMM-Config installer…
        I have some code in the upgrade script that checks for KNOWN missing requires…
        I opened issue https://github.com/sdetweil/MMM-Config/issues/77

        to fix this on the current setup

        ssh to the docker host
        docker exec -it mm bash 
        cd modules/MMM-NOAAForecast
        npm install needle
        exit
        

        then restart the docker container

        cd ~/magicmirror/run
        docker compose up -d
        exit
        

        the module should be working now

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • R RonR has marked this topic as solved
        • R Offline
          RonR
          last edited by

          That did it. Had to do a “docker restart mm” also before the screen updated correctly. Thanks for your help.

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

            @RonR docker compose up should force a restart, but you got it

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @RonR I have completed the fixes for this problem as a general solution… thanks for pointing it out.

              git pull in the module folder to get the fix
              (on docker you have to docker exec into the container first)

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 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