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

      @uok825 said in Cannot find module "moment":

      /home/pi/MagicMirror/node_modules/request/lib/auth.js

      looks like a library under request

      cd ~/MagicMirror
      npm install uuid
      

      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

        request and any lib that used request was removed in 2.16 as there was a security problem never to be fixed… so module was deprecated (set end of life)

        MagicMirror removed

        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

          but the internet is working!!

          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 Yeah. I also solved the other Raspberry and I know how to solve it here. We would try less if I don’t realize later. I’m sorry to have been ranting. I’m currently installing Uuid if the problem I will write again. Thanks for your labor Sam.

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

              @uok825 to shorten the path

              pm2 stop all

              then do

              npm start

              in the MagicMirror folder
              alt-spacebar, n to minimize MM
              then ctrl-c to stop

              once good, then pm2 status to get the number and
              pm2 start 0 or whatever number

              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 I am connected with SSH. I always did pm2 stop 0, pm2 flush, do my work and pm2 start 0. But PI0 is so slow still doing npm :D

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

                  @uok825 but don’t need to do pm2 start until its working correctly

                  why do you post screen shots if connected via ssh?/ just copy the text…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @uok825 pm2 calls npm same thing…

                    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

                      @sdetweil Screenshot is a habit for me to take. easier than copying

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

                        @uok825 screen shots harder to read here, very tiny… impossible on phone

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