• 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 44.3k 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 25, 2021, 5:21 PM

    @sdetweil said in Cannot find module "moment":

    git checkout master

    cd4d0118-0f5d-4070-98f5-56760aea9ae6-image.png

    S 1 Reply Last reply Jul 25, 2021, 5:26 PM Reply Quote 1
    • S Away
      sdetweil @uok825
      last edited by sdetweil Jul 25, 2021, 5:28 PM Jul 25, 2021, 5:26 PM

      @uok825 ok try these two commands
      <file> is package-lock.json

      this restores the file status in the index

      git reset – <file>

      then check out a copy from the index

      git checkout – <file>

      notice that is two dashes

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      U 2 Replies Last reply Jul 25, 2021, 5:28 PM Reply Quote 0
      • U Offline
        uok825 @sdetweil
        last edited by Jul 25, 2021, 5:28 PM

        @sdetweil I’ll do ’ git reset - package-lock-json ’ right?

        S 1 Reply Last reply Jul 25, 2021, 5:28 PM Reply Quote 0
        • S Away
          sdetweil @uok825
          last edited by sdetweil Jul 25, 2021, 5:29 PM Jul 25, 2021, 5:28 PM

          @uok825 and then git checkout …

          and then git status

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • U Offline
            uok825 @sdetweil
            last edited by Jul 25, 2021, 5:32 PM

            @sdetweil Sorry. I dont understand Sam. Can you help a little. What exactly will I write?

            S 1 Reply Last reply Jul 25, 2021, 5:33 PM Reply Quote 0
            • S Away
              sdetweil @uok825
              last edited by sdetweil Jul 25, 2021, 5:34 PM Jul 25, 2021, 5:33 PM

              @uok825 there are two commands

              git reset -- package-lock.json
              

              and

              git checkout -- package-lock.json
              

              then git status

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              U 1 Reply Last reply Jul 25, 2021, 5:36 PM Reply Quote 0
              • U Offline
                uok825 @sdetweil
                last edited by Jul 25, 2021, 5:36 PM

                @sdetweil Alright, Thanks! 878de904-2923-4e44-8522-bea1c1f642c3-image.png

                S 1 Reply Last reply Jul 25, 2021, 5:37 PM Reply Quote 0
                • S Away
                  sdetweil @uok825
                  last edited by Jul 25, 2021, 5:37 PM

                  @uok825 ok, now,

                  git checkout master

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  U 1 Reply Last reply Jul 25, 2021, 5:38 PM Reply Quote 0
                  • U Offline
                    uok825 @sdetweil
                    last edited by Jul 25, 2021, 5:38 PM

                    @sdetweil said in Cannot find module "moment":

                    @uok825 ok, now,

                    git checkout master

                    ef71e6c6-1c86-49bf-812d-f554dcf47aa2-image.png

                    S 1 Reply Last reply Jul 25, 2021, 5:39 PM Reply Quote 0
                    • S Away
                      sdetweil @uok825
                      last edited by Jul 25, 2021, 5:39 PM

                      @uok825 ok, the upgrade script will handle that

                      run upgrade with apply

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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