• 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.

MMM-Ring: Module error

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 2 Posters 1.3k 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.
  • K Offline
    Kanostic
    last edited by Kanostic Jul 17, 2021, 8:52 AM Jul 17, 2021, 8:51 AM

    MMM-Ring: Module, is giving me this error when running pm2 logs, this is the only module failing. It was working good until I updated npm I think and now I can’t figure it out.

    0|MagicMirror | [17.07.2021 00:33.49.258] [ERROR]
    0|MagicMirror | 2021-07-17T00:33:49 (node:3641) UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘subscribe’ of undefined
    0|MagicMirror | at Class.monitorRingActivity (/home/pi/MagicMirror/modules/MMM-Ring/node_helper.js:84:40)
    0|MagicMirror | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-Ring/node_helper.js:61:12)
    0|MagicMirror | (/home/pi/MagicMirror/internal/process/warning.js:32 writeOut)
    0|MagicMirror | [17.07.2021 00:33.49.260] [ERROR]
    0|MagicMirror | 2021-07-17T00:33:49 (node:3641) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (/home/pi/MagicMirror/internal/process/warning.js:32 writeOut)
    0|MagicMirror | [17.07.2021 00:33.49.261] [ERROR]
    0|MagicMirror | 2021-07-17T00:33:49 (node:3641) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. (/home/pi/MagicMirror/internal/process/warning.js:32 writeOut)

    pi@mm:~/MagicMirror/modules/MMM-Ring $ npm list
    MMM-Ring@1.0.0 /home/pi/MagicMirror/modules/MMM-Ring
    ├── chokidar@3.5.1
    ├── dotenv@8.6.0
    ├── hls.js@0.13.2
    ├── latest-version@5.1.0
    ├── ring-client-api@4.2.3
    └── rxjs@6.6.7

    pi@mm:~/MagicMirror/modules/MMM-Ring $ npm install latest-version

    up to date, audited 105 packages in 3s

    1 package is looking for funding
    run npm fund for details

    2 high severity vulnerabilities

    To address all issues (including breaking changes), run:
    npm audit fix --force

    Run npm audit for details.

    Forgot to include npm version
    pi@mm:~/MagicMirror $ npm -v
    7.19.1

    S 1 Reply Last reply Jul 17, 2021, 11:51 AM Reply Quote 0
    • S Away
      sdetweil @Kanostic
      last edited by Jul 17, 2021, 11:51 AM

      @kanostic yes, we’ve seen some errors on npm 7. I would fall back to v6.

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      K 1 Reply Last reply Jul 17, 2021, 5:27 PM Reply Quote 0
      • K Offline
        Kanostic @sdetweil
        last edited by Jul 17, 2021, 5:27 PM

        @sdetweil Thanks I downgraded npm to 6.14.13

        $ npm -v
        6.14.13

        Restarted mm and I’m still getting the same error in the logs, do I need to reinstall MMM-Ring and all it’s dependencies?

        Thanks

        S 1 Reply Last reply Jul 17, 2021, 5:27 PM Reply Quote 0
        • S Away
          sdetweil @Kanostic
          last edited by Jul 17, 2021, 5:27 PM

          @kanostic maybe just npm install in the module folder

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          K 1 Reply Last reply Jul 17, 2021, 7:23 PM Reply Quote 0
          • K Offline
            Kanostic @sdetweil
            last edited by Jul 17, 2021, 7:23 PM

            @sdetweil Thank you doing a npm install and npm audit fix --force did the trick, apologies for all the basic questions, I am pretty new to Magic Mirror.

            S K 2 Replies Last reply Jul 17, 2021, 7:26 PM Reply Quote 1
            • S Away
              sdetweil @Kanostic
              last edited by sdetweil Jul 17, 2021, 7:35 PM Jul 17, 2021, 7:26 PM

              @kanostic said in MMM-Ring: Module error:

              npm audit fix --force

              careful on that, many times it causes more problems than it fixes…
              generally recommend to ignore the messages (and we can’t hide them)

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • K Offline
                Kanostic @Kanostic
                last edited by Jul 17, 2021, 7:32 PM

                @kanostic said in MMM-Ring: Module error:

                @sdetweil Thank you doing a npm install and npm audit fix --force did the trick, apologies for all the basic questions, I am pretty new to Magic Mirror.

                Good to know, thank you again.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                1 / 1
                • First post
                  1/7
                  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