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 "moment"

    Scheduled Pinned Locked Moved Troubleshooting
    98 Posts 2 Posters 45.8k 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.
    • S Offline
      sdetweil @uok825
      last edited by sdetweil

      @uok825 but u had it downloaded already

      grep version package.json

      u were on develop
      so either 2.13 or 2.12

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      U 1 Reply Last reply Reply Quote 0
      • U Offline
        uok825 @sdetweil
        last edited by uok825

        @sdetweil said in Cannot find module "moment":

        grep version package.json

        Version 2.12.0
        85bb21bf-e3ae-4175-a147-e431cedf5e7f-image.png

        S 2 Replies Last reply Reply Quote 0
        • S Offline
          sdetweil @uok825
          last edited by sdetweil

          @uok825 run the upgrade script from installers
          like u were doing

          or run just the curl… part of the whole command so we can see the error

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil NEVER EVER SUDO!!!

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            U 1 Reply Last reply Reply Quote 0
            • U Offline
              uok825 @sdetweil
              last edited by uok825

              @sdetweil Okey im sorry. Now run just

              curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh
              

              c9ccfe87-2fd2-464c-843d-e3b2620af791-image.png

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

                @uok825

                cd ~
                MagicMirror/installers/upgrade-script.sh apply
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                U 1 Reply Last reply Reply Quote 0
                • U Offline
                  uok825 @sdetweil
                  last edited by

                  @sdetweil 0ac068d6-c12e-4b8a-8052-f77778b56ae2-image.pngAccess denied

                  S 2 Replies Last reply Reply Quote 0
                  • S Offline
                    sdetweil @uok825
                    last edited by sdetweil

                    @uok825 ah, didn’t mark executable

                    cd ~
                    chmod +x MagicMirror/installers/upgrade-script.sh
                    MagicMirror/installers/upgrade-script.sh apply
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    U 1 Reply Last reply Reply Quote 0
                    • U Offline
                      uok825 @sdetweil
                      last edited by

                      @sdetweil said in Cannot find module "moment":

                      MagicMirror/installers/upgrade-script.sh apply

                      d3b8ef45-0c75-4b56-8579-62f0d55c9c2f-image.png

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

                        @uok825 when I do the curl i get

                        curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh
                        #!/bin/bash
                        # only DO npm installs when flag is set to  1
                        # test when set to 0
                        true=1
                        .......
                        plus all the rest of the script.
                        

                        u have a networking problem going on …

                        warning, upgrade might fail as IT will try to download new files too

                        yes, the upgrade uses curl to get the new package.json file to check the version

                        remote_version=$(curl -s https://raw.githubusercontent.com/MichMich/MagicMirror/master/package.json
                        

                        and it also fails…

                        SO… u need to solve that… are you using pihole somewhere?

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        U 2 Replies Last reply Reply Quote 0
                        • 1
                        • 2
                        • 6
                        • 7
                        • 8
                        • 9
                        • 10
                        • 10 / 10
                        • 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