• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 39.5k 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.
  • U Offline
    uok825 @sdetweil
    last edited by Jul 24, 2021, 9:45 PM

    @sdetweil I haven’t upgraded since 2020. Now when I run your script, nothing happens?

    S 1 Reply Last reply Jul 24, 2021, 9:46 PM Reply Quote 0
    • S Offline
      sdetweil @uok825
      last edited by Jul 24, 2021, 9:46 PM

      @uok825 cut and paste the whole line from the github page, right

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      U 1 Reply Last reply Jul 24, 2021, 9:47 PM Reply Quote 0
      • U Offline
        uok825 @sdetweil
        last edited by Jul 24, 2021, 9:47 PM

        @sdetweil Yeah.
        00349a3f-0038-4570-bdcb-1f06f9da35b9-image.png

        S 1 Reply Last reply Jul 24, 2021, 9:49 PM Reply Quote 0
        • S Offline
          sdetweil @uok825
          last edited by Jul 24, 2021, 9:49 PM

          @uok825 hm, that means the curl to get the script is failing

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          U 1 Reply Last reply Jul 24, 2021, 9:49 PM Reply Quote 0
          • U Offline
            uok825 @sdetweil
            last edited by Jul 24, 2021, 9:49 PM

            @sdetweil I can get a new file called upgrade-script.sh and paste all code in it? Thats will work i think?

            S 1 Reply Last reply Jul 24, 2021, 9:50 PM Reply Quote 0
            • S Offline
              sdetweil @uok825
              last edited by sdetweil Jul 24, 2021, 9:51 PM Jul 24, 2021, 9:50 PM

              @uok825 yes should

              i am in the car for another half an hour

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              U 1 Reply Last reply Jul 24, 2021, 9:52 PM Reply Quote 0
              • U Offline
                uok825 @sdetweil
                last edited by Jul 24, 2021, 9:52 PM

                @sdetweil Okey. I will do ./upgrade-script.sh right?

                S 1 Reply Last reply Jul 24, 2021, 10:16 PM Reply Quote 0
                • S Offline
                  sdetweil @uok825
                  last edited by sdetweil Jul 24, 2021, 10:16 PM Jul 24, 2021, 10:16 PM

                  @uok825 yes, and with apply as parm

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  U 1 Reply Last reply Jul 24, 2021, 10:19 PM Reply Quote 0
                  • U Offline
                    uok825 @sdetweil
                    last edited by Jul 24, 2021, 10:19 PM

                    @sdetweil said in Cannot find module "moment":

                    @uok825 yes, and with apply as parm

                    pi@raspberrypi:~/MagicMirror $ bash upgrade-script.sh apply
                    No LSB modules are available.
                    doing test run = false
                    update log will be in /home/pi/MagicMirror/installers/upgrade.log

                    saving custom.css
                    reverting to master branch from develop, saving changed files
                    saving file package.json as package.json.save before switch back to master branch
                    restoring file package.json before switch back to master branch
                    error: you need to resolve your current index first
                    unable to change back to master branch, stopping execution

                    S 1 Reply Last reply Jul 25, 2021, 12:18 AM Reply Quote 0
                    • S Offline
                      sdetweil @uok825
                      last edited by Jul 25, 2021, 12:18 AM

                      @uok825 said in Cannot find module "moment":

                      you need to resolve your current index first

                      looks like some attempt to merge failed

                      run this in the MagicMirror folder

                      git diff --name-only --diff-filter=U
                      

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      U 1 Reply Last reply Jul 25, 2021, 4:31 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 9
                      • 10
                      • 2 / 10
                      2 / 10
                      • First post
                        20/98
                        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