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-Canvas and MMM-Stocks not working

    Scheduled Pinned Locked Moved Solved Troubleshooting
    13 Posts 2 Posters 3.4k 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
      last edited by

      @gabe21 said in MMM-Canvas and MMM-Stocks not working:

      where would I get the missing library from?

      the messages output by MM starting up

      you either did

      npm start
      and it spews out messages

      or you used pm2
      and it captures the messages
      pm2 logs --lines=??? (default 15) will show the messages

      you are looking for

      cannot find module xxx

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      G 1 Reply Last reply Reply Quote 0
      • G Offline
        Gabe21 @sdetweil
        last edited by

        @sdetweil

        code: 'MODULE_NOT_FOUND',
          requireStack: [
            '/home/pi/MagicMirror/modules/MMM-Canvas/node_helper.js',
            '/home/pi/MagicMirror/js/app.js',
            '/home/pi/MagicMirror/js/electron.js',
            '/code: 'MODULE_NOT_FOUND',
              requireStack: [
                '/home/pi/MagicMirror/modules/MMM-Canvas/node_helper.js',
                '/home/pi/MagicMirror/js/app.js',
                '/home/pi/MagicMirror/js/electron.js',
                '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
          
        
        

        So

        npm install /home/pi/MagicMirror/modules/MMM-Canvas/node_helper.js

        ?

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

          @gabe21 no… up further in the messages

          before

          code: 'MODULE_NOT_FOUND',
            requireStack: [
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          G 1 Reply Last reply Reply Quote 0
          • G Offline
            Gabe21 @sdetweil
            last edited by

            @sdetweil Sorry, I’m a bit confused. Wouldn’t it just be npm install MMM-Canvas then? Since canvas is the module that it can’t find…

            Sorry again

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

              @gabe21

              no… IN the MMM-Canvas folder

              it is

              npm install request
              or
              npm install valid-url
              or
              npm install ???

              whatever other lib might be missing…

              u have to read the messages to get the name of the missing thing

              from someone else’s same problem

              - 
              [31.10.2021 20:10.49.037] [ERROR] App threw an error during load
              [31.10.2021 20:10.49.039] [ERROR] Error: Cannot find module  'request'  <----------------------------
              Require stack:
              - /home/pi/MagicMirror/modules/MMM-NetworkConnection/node_modules/lzma-native/index.js
              - /home/pi/MagicMirror/modules/MMM-NetworkConnection
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              G 1 Reply Last reply Reply Quote 0
              • G Offline
                Gabe21 @sdetweil
                last edited by

                @sdetweil Ohh. Now I get it, works too!

                Thank you so much and sry about that.

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