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.

    Need to npm install valid-url everytime I deploy MM

    Scheduled Pinned Locked Moved Solved Troubleshooting
    3 Posts 2 Posters 431 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.
    • G Offline
      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 Offline
        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 Away
          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

          How to add modules

          learning how to use browser developers window for css changes

          G 1 Reply Last reply Reply Quote 0
          • G Offline
            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 Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy