MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.

    Cannot find module "moment"

    Troubleshooting
    2
    98
    7728
    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
      uok825 last edited by

      After i want to try install twitter(npm) it crashed btw. Then i can’t access my localhost. I use PI Zero W .Here is my logs:
      8c52e384-5042-4a70-81af-b3a8e2d42781-image.png

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

        @uok825 that is calendar having trouble… how did u install MM?

        that should have been loaded when npm install was done

        2.16 is the current version… 2.13 is 9 months ago

        Sam

        Create a working config
        How to add modules

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

          @sdetweil i tryed to unistall twitter. May be thats the cause. Sorry for bad English. I ran your update script.

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

            @uok825 update is AFTER u have been running, and a new release comes out…

            it takes two steps…

            1 1st run is a test run to tell you what might be issues… maybe u need to save some files, or something…
            or u made changes to module files and forgot u did that
            2 rerun with a parameter to actually DO the update

            if u don’t do 2, then you didn’t update

            twitter should have no effect

            which twitter module?

            Sam

            Create a working config
            How to add modules

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

              @sdetweil https://github.com/AdamMoses-GitHub/MMM-TwitterTrendsByPlace
              But i cant install that

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

                @uok825 well, its because he did a bad thing, and didn’t document that he needed the ‘twitter’ library module
                (there is no package.json file to document the module dependencies)
                but his node_helper.js says require(‘twitter’);

                go to the module folder and do
                npm install twitter

                Sam

                Create a working config
                How to add modules

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

                  @sdetweil Yeah i know. When i tried to npm install twitter. The electron has been failed cause i think the Pi zero stuff. Then its failed, i tried npm uninstall twitter. And the problem started.

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

                    @uok825 there is no electron for pi 0… if u install with my script, I setup server mode and then launch chromium over the server… (doing npm start , starts my run-start.sh script)

                    Sam

                    Create a working config
                    How to add modules

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

                      @sdetweil I installed with your script. Its been working for a 1,5 years. Now its broken what can i do?

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

                        @sdetweil Anything you can help me?

                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 9
                        • 10
                        • 1 / 10
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy