• 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 45.2k 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 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
    • U Offline
      uok825 @sdetweil
      last edited by uok825 Jul 25, 2021, 5:43 PM Jul 25, 2021, 5:41 PM

      @sdetweil Nothing Happened.
      4e142fda-f592-4c81-b156-e7f60e0c0ec7-image.png
      My Log again:

      
      Upgrade started - Paz Tem 12 22:41:23 +03 2020
      system is Linux raspberrypi 4.19.118+ #1311 Mon Apr 27 14:16:15 BST 2020 armv6l GNU/Linux
      the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
      user requested to apply changes
      doing test run = false
      
      saving custom.css
      remote name = origin
      upgrading from version 2.11.0 to 2.12.0
      fetching latest revisions
      git fetch rc=0
      current branch = master
      On branch master
      Your branch is up to date with 'origin/master'.
      
      Changes not staged for commit:
        (use "git add <file>..." to update what will be committed)
        (use "git checkout -- <file>..." to discard changes in working directory)
      
      	modified:   installers/mm.sh
      	modified:   modules/default/newsfeed/newsfeed.js
      	modified:   package-lock.json
      	modified:   package.json
      
      Untracked files:
        (use "git add <file>..." to include in what will be committed)
      
      	0
      	core
      	css/icons/
      	css/save_custom.css
      	fonts/LemonMilk.otf
      	installers/pm2_MagicMirror.json
      	run-start.sh
      
      no changes added to commit (use "git add" and/or "git commit -a")
      there are 4 local files that are different than the master repo
      
         installers/mm.sh
         modules/default/newsfeed/newsfeed.js
         package-lock.json
         package.json
      
      save/restore files selection = n
      restoring installers/mm.sh from repo
      restoring modules/default/newsfeed/newsfeed.js from repo
      restoring package-lock.json from repo
      restoring package.json from repo
      test merge result rc='' , if empty, no conflicts
      executing merge, apply specified
      merge result rc= 0
       Already up to date.
      processor architecture is armv6l
      updating MagicMirror runtime, please wait
      
      > magicmirror@2.12.0 install /home/pi/MagicMirror
      > echo "Installing vendor files ...
      " && cd vendor && npm install --loglevel=error
      
      Installing vendor files ...
      
      audited 150 packages in 44.188s
      found 8 vulnerabilities (7 low, 1 high)
        run `npm audit fix` to fix them, or `npm audit` for details
      
      > magicmirror@2.12.0 postinstall /home/pi/MagicMirror
      > npm run install-fonts && echo "MagicMirror installation finished successfully! 
      "
      
      
      > magicmirror@2.12.0 install-fonts /home/pi/MagicMirror
      > echo "Installing fonts ...
      " && cd fonts && npm install --loglevel=error
      
      Installing fonts ...
      
      updated 1 package and audited 1 package in 19.099s
      found 0 vulnerabilities
      
      MagicMirror installation finished successfully! 
      
      audited 1050 packages in 275.039s
      
      74 packages are looking for funding
        run `npm fund` for details
      
      found 62 vulnerabilities (61 low, 1 moderate)
        run `npm audit fix` to fix them, or `npm audit` for details
      npm install completed - Paz Tem 12 22:46:48 +03 2020 on base
      package.json update for armv6l completed ok
      downloading dumpactivemodules script
      
      processing dependency changes for active modules with package.json files
      processing for module MMM-MyPrayerTimes please wait
      ----------------------------------
      npm notice created a lockfile as package-lock.json. You should commit this file.
      added 2 packages from 6 contributors and audited 2 packages in 12.29s
      found 0 vulnerabilities
      
      processing complete for module MMM-MyPrayerTimes
      processing for module MMM-PIR please wait
      ----------------------------------
      
      > epoll@2.0.10 install /home/pi/MagicMirror/modules/MMM-PIR/node_modules/epoll
      > node-gyp rebuild
      
      make: Entering directory '/home/pi/MagicMirror/modules/MMM-PIR/node_modules/epoll/build'
        CXX(target) Release/obj.target/epoll/src/epoll.o
        SOLINK_MODULE(target) Release/obj.target/epoll.node
        COPY Release/epoll.node
      make: Leaving directory '/home/pi/MagicMirror/modules/MMM-PIR/node_modules/epoll/build'
      npm notice created a lockfile as package-lock.json. You should commit this file.
      added 6 packages from 9 contributors and audited 6 packages in 57.611s
      found 0 vulnerabilities
      
      processing complete for module MMM-PIR
      restoring custom.css
      removing git alias
      Upgrade ended - Paz Tem 12 22:48:25 +03 2020
      
      Upgrade started - Sal Tem 14 17:31:45 +03 2020
      system is Linux raspberrypi 4.19.118+ #1311 Mon Apr 27 14:16:15 BST 2020 armv6l GNU/Linux
      the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
      user requested to apply changes
      doing test run = false
      
      saving custom.css
      remote name = origin
      local version 2.12.0 already same as master 2.12.0
      restoring custom.css
      removing git alias
      Upgrade ended - Sal Tem 14 17:31:48 +03 2020
      
      Upgrade started - Cum Eki 30 11:24:00 +03 2020
      system is Linux raspberrypi 4.19.118+ #1311 Mon Apr 27 14:16:15 BST 2020 armv6l GNU/Linux
      the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
      user requested to apply changes
      doing test run = false
      
      saving custom.css
      restoring file    package.json before switch back to master branch
      package-lock.json: needs merge
      remote name = origin
      local version 2.13.0 already same as master 2.13.0
      restoring custom.css
      removing git alias
      Upgrade ended - Cum Eki 30 11:24:05 +03 2020
      
      Upgrade started - Paz Tem 18 13:21:20 +03 2021
      system is Linux raspberrypi 4.19.118+ #1311 Mon Apr 27 14:16:15 BST 2020 armv6l GNU/Linux
      the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
      doing test run = true, NO updates will be applied!
      
      saving custom.css
      reverting to master branch from develop, saving changed files
      would restore file package.json before switch back to master branch
      package-lock.json: needs merge
      Upgrade ended - Paz Tem 18 13:21:23 +03 2021
      
      Upgrade started - Paz Tem 18 13:44:35 +03 2021
      system is Linux raspberrypi 4.19.118+ #1311 Mon Apr 27 14:16:15 BST 2020 armv6l GNU/Linux
      the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
      doing test run = true, NO updates will be applied!
      
      saving custom.css
      reverting to master branch from develop, saving changed files
      would restore file package.json before switch back to master branch
      package-lock.json: needs merge
      Upgrade ended - Paz Tem 18 13:44:37 +03 2021
      
      Upgrade started - Paz Tem 18 13:44:39 +03 2021
      system is Linux raspberrypi 4.19.118+ #1311 Mon Apr 27 14:16:15 BST 2020 armv6l GNU/Linux
      the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
      user requested to apply changes
      doing test run = false
      
      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
      package-lock.json: needs merge
      Upgrade ended - Paz Tem 18 13:44:41 +03 2021
      
      

      Raspberry’s date is wrong

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

        @uok825 ok, I don’t get it.

        git status
        again

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @sdetweil said in Cannot find module "moment":

          git status

          0a50865f-1373-4f7c-9c6e-378320f1d7d4-image.png

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

            @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 Jul 25, 2021, 5:48 PM Reply Quote 0
            • U Offline
              uok825 @sdetweil
              last edited by Jul 25, 2021, 5:48 PM

              @sdetweil said in Cannot find module "moment":

              git checkout master

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

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

                @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 Jul 25, 2021, 5:52 PM Reply Quote 0
                • U Offline
                  uok825 @sdetweil
                  last edited by Jul 25, 2021, 5:52 PM

                  @sdetweil 7e1e4032-421e-410f-bbc7-ec8c6047657f-image.png

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

                    @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 Jul 25, 2021, 5:54 PM Reply Quote 0
                    • U Offline
                      uok825 @sdetweil
                      last edited by Jul 25, 2021, 5:54 PM

                      @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 Jul 25, 2021, 5:55 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 7
                      • 8
                      • 9
                      • 10
                      • 5 / 10
                      5 / 10
                      • First post
                        43/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