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 54.4k 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

      @uok825 ok

      cd ~/MagicMirror
      git checkout package.json

      git checkout master

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

        git checkout master

        92298f58-d93c-47df-9fc9-e1e738027342-image.png

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

          @uok825 but we just checked out the older copy, so it should be unchanged now…

          git diff package.json

          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 7e1e4032-421e-410f-bbc7-ec8c6047657f-image.png

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

              @uok825 right, says no changes…

              grep start package.json

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

                grep start package.json

                Can you give me a Reputation. I cant reply you fast.
                31483e95-2057-497c-bd12-49872056b715-image.png

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

                  @uok825 hm… but that’s different than master, shouldn’t be.

                  git stash
                  git checkout master

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

                    git checkout master

                    847faa1d-349e-4b1f-a0b5-001649266609-image.png

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

                      @uok825 yay!!!

                      run upgrade 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 7183d73a-87b7-41e7-8c98-3a25969d7361-image.png It is not normal i think. I am about to cry. How can i check my MagicMirror version?

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

                                            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
                                            • 3
                                            • 4
                                            • 5
                                            • 2 / 5
                                            • 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