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 'request'

    Scheduled Pinned Locked Moved Solved Troubleshooting
    4 Posts 3 Posters 212 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.
    • R Offline
      rune
      last edited by

      Hi all!
      I’m using the docker solution for MagicMirror, running in Electron “mode”. Several modules that require fetching content seems to be relying on the “Request” NPM package. This is not installed in the docker MagicMirror package/solution.

      I’ve tried installing the package in the “mm” container, using npm install request - that did not resolve the issue.

      I was hoping someone should have a tip or two for me. Anyone had this issue before. Could not find anything in the forum.

      Thanks for any help!

      Cheers!
      Rune

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

        https://khassel.gitlab.io/magicmirror/docs/faq.html#error-cannot-find-module-request

        R 1 Reply Last reply Reply Quote 1
        • S Offline
          sdetweil @rune
          last edited by

          @rune so you need to do that IN the module folder in the container

          on the docker host

          docker exec -it mm bash
          cd modules/modulename
          npm install request
          cd ../othermodulename
          npm install request
          exit
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          karsten13K 1 Reply Last reply Reply Quote 0
          • karsten13K Offline
            karsten13 @sdetweil
            last edited by

            https://khassel.gitlab.io/magicmirror/docs/faq.html#error-cannot-find-module-request

            R 1 Reply Last reply Reply Quote 1
            • R Offline
              rune @karsten13
              last edited by

              @karsten13 Thanks! That worked! Somehow I missed that FAQ :)

              –
              Rune

              1 Reply Last reply Reply Quote 0
              • S sdetweil has marked this topic as solved on
              • 1 / 1
              • 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