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

Scheduled Pinned Locked Moved Solved Troubleshooting
4 Posts 3 Posters 184 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 Feb 13, 2025, 10:07 AM

    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 Feb 13, 2025, 1:35 PM Reply Quote 0
    • K Offline
      karsten13 @sdetweil
      last edited by Feb 13, 2025, 5:45 PM

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

      R 1 Reply Last reply Feb 14, 2025, 9:20 AM Reply Quote 1
      • S Offline
        sdetweil @rune
        last edited by Feb 13, 2025, 1:35 PM

        @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

        K 1 Reply Last reply Feb 13, 2025, 5:45 PM Reply Quote 0
        • K Offline
          karsten13 @sdetweil
          last edited by Feb 13, 2025, 5:45 PM

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

          R 1 Reply Last reply Feb 14, 2025, 9:20 AM Reply Quote 1
          • R Offline
            rune @karsten13
            last edited by Feb 14, 2025, 9:20 AM

            @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 Feb 15, 2025, 10:29 PM
            • 1 / 1
            1 / 1
            • First post
              1/4
              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