• 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 50.7k 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 sdetweil Jul 24, 2021, 4:59 PM Jul 24, 2021, 4:58 PM

    @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

    How to add modules

    learning how to use browser developers window for css changes

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

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

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

        @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

        How to add modules

        learning how to use browser developers window for css changes

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

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

            @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

            How to add modules

            learning how to use browser developers window for css changes

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

              @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 Offline
                uok825 @sdetweil
                last edited by Jul 24, 2021, 9:25 PM

                @sdetweil Anything you can help me?

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

                  @uok825 well… try

                  from the MagicMirror folder

                  rm package-lock.json
                  rm -rf node_modules
                  npm install
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @sdetweil I used your script, it wouldn’t be a problem, right?

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

                      @uok825 u mean to install, or upgrade?

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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