MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    SOLVED Need to npm install valid-url everytime I deploy MM

    Troubleshooting
    2
    3
    76
    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.
    • G
      gggg1981gggg last edited by

      Hi there.
      I love MM but I have a problem where everytime before deploying the container I have to edit the config and set the module calendar to disabled

      { disabled: true,
            module: "calendar",
            header: "Cal",
            position: "bottom_right",
            config: {
              calendars: [
                {
                  symbol: "calendar-check",
                  
      	    url: "mycal"
                }
              ]
            }
          },
      
      

      then after starting the container I go into the container

      npm install valid-url
      

      then I get prompt and need to

      npm audit fix
      

      After all that I edit the config again and set the module calendar to enabled and everything works fine

      { disabled: false,
            module: "calendar",
            header: "Cal",
            position: "bottom_right",
            config: {
              calendars: [
                {
                  symbol: "calendar-check",
                  
      	    url: "mycal"
                }
              ]
            }
          },
      
      

      Without doing that the container won’t work.

      How can I fix that?

      S 1 Reply Last reply Reply Quote 0
      • G
        gggg1981gggg @sdetweil last edited by

        @sdetweil

        calendar hasn’t used valid-url for almost a year.(2.16).

        That would make sense as I had this problem for quite a while everytime I was moving docker volumes between devices but I decided to ask for help just today.
        I removed

        /modules/default
        

        added dns entry to docker-compose as my calendar module could’t reach google and it is working now.
        Thank you

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

          @gggg1981gggg audit fix is unnecessary. nothing we can do about libs using libs using libs.etc that have old code. fix usually caused more problems than it fixes.

          calendar hasn’t used valid-url for almost a year.(2.16).

          Sam

          Create a working config
          How to add modules

          G 1 Reply Last reply Reply Quote 0
          • G
            gggg1981gggg @sdetweil last edited by

            @sdetweil

            calendar hasn’t used valid-url for almost a year.(2.16).

            That would make sense as I had this problem for quite a while everytime I was moving docker volumes between devices but I decided to ask for help just today.
            I removed

            /modules/default
            

            added dns entry to docker-compose as my calendar module could’t reach google and it is working now.
            Thank you

            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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy