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.

    Error : cannot find module "rrule"

    Scheduled Pinned Locked Moved Solved Troubleshooting
    13 Posts 3 Posters 2.9k Views 3 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 @JohnB7777
      last edited by sdetweil

      @JohnB7777 yeh, you used sudo somehwere… NEVER use sudo (except when told, for specific things)

      do this

      cd ~
      sudo chown -R pi MagicMirror
      

      then redo the command above.

      why would you delete a module?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        JohnB7777 @sdetweil
        last edited by

        @sdetweil I deleted this module because I though it was the cause of the error.

        I tried what you said and it worked but when I start the mirror, there is another error :

        > magicmirror@2.9.0 start /home/pi/MagicMirror
        > sh run-start.sh
        
        Starting MagicMirror: v2.9.0
        Loading config ...
        Loading module helpers ...
        No helper found for module: alert.
        No helper found for module: clock.
        Initializing new module helper ...
        Module helper loaded: calendar
        No helper found for module: currentweather.
        No helper found for module: weatherforecast.
        No helper found for module: MMM-AirQuality.
        WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'async'
        Loading module helpers ...
        No helper found for module: alert.
        No helper found for module: clock.
        Initializing new module helper ...
        Module helper loaded: calendar
        No helper found for module: currentweather.
        No helper found for module: weatherforecast.
        No helper found for module: MMM-AirQuality.
        App threw an error during load
        Error: Cannot find module 'async'
            at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
            at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
            at Function.Module._load (internal/modules/cjs/loader.js:528:25)
            at Module.require (internal/modules/cjs/loader.js:658:17)
            at require (internal/modules/cjs/helpers.js:20:18)
            at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Tools/node_helper.js:9:13)
            at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Tools/node_helper.js:239:3)
            at Module._compile (internal/modules/cjs/loader.js:711:30)
            at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
            at Module.load (internal/modules/cjs/loader.js:620:32)
        Whoops! There was an uncaught exception...
        { Error: Cannot find module 'async'
            at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
            at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
            at Function.Module._load (internal/modules/cjs/loader.js:528:25)
            at Module.require (internal/modules/cjs/loader.js:658:17)
            at require (internal/modules/cjs/helpers.js:20:18)
            at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Tools/node_helper.js:9:13)
            at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Tools/node_helper.js:239:3)
            at Module._compile (internal/modules/cjs/loader.js:711:30)
            at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
            at Module.load (internal/modules/cjs/loader.js:620:32) code: 'MODULE_NOT_FOUND' }
        MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
        If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
        Launching application.
        ^Z
        [2]+  Stoppé                 npm start
        
        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @JohnB7777
          last edited by

          @JohnB7777 said in Error : cannot find module "rrule":

          MMM-Tools

          do this

          cd MagicMirror
          npm install async
          

          then restart mirror

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            JohnB7777 @sdetweil
            last edited by

            @sdetweil Ok, it works but I have another error that doesn’t prevent the start of the mirror.

            Whoops! There was an uncaught exception...
            { Error: listen EADDRINUSE 127.0.0.1:8080
                at Server.setupListenHandle [as _listen2] (net.js:1330:14)
                at listenInCluster (net.js:1378:12)
                at GetAddrInfoReqWrap.doListen [as callback] (net.js:1492:7)
                at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:55:10)
              errno: 'EADDRINUSE',
              code: 'EADDRINUSE',
              syscall: 'listen',
              address: '127.0.0.1',
              port: 8080 }
            MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
            If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
            Launching application.
            
            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @JohnB7777
              last edited by

              @JohnB7777

              MagicMirror will not quit,
              

              already have MagicMirror running

              pm2 stop 0
              pm2 start 0
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              J 1 Reply Last reply Reply Quote 0
              • J Offline
                JohnB7777 @sdetweil
                last edited by

                @sdetweil Yes, I use pm2 to start and stop the mirror but I use npm start to see the errors.

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

                  @JohnB7777

                  you have two instances running…

                  npm start is what pm2 does for you under the covers

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  J lavolp3L 2 Replies Last reply Reply Quote 0
                  • J Offline
                    JohnB7777 @sdetweil
                    last edited by

                    @sdetweil Oh, yes, I understand what you wanted to say.
                    That was the cause of the error.

                    Now, the problem is solved, and thank you very much for your (very quick) help ! :D

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

                      @JohnB7777 cool… can u mark this solved now… 3 dots next to the message that u think resolves it

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • lavolp3L Offline
                        lavolp3 Module Developer @sdetweil
                        last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • 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