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

2.17.1 error with MMM-DynamicWeather

Scheduled Pinned Locked Moved Solved Troubleshooting
6 Posts 3 Posters 821 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.
  • A Offline
    Assassins
    last edited by Oct 5, 2021, 3:43 PM

    Hello.
    I get this error when start MM 2.17.1

    [05.10.2021 17:37.46.607] [ERROR] App threw an error during load
    [05.10.2021 17:37.46.615] [ERROR] Error: Cannot find module 'request'
    Require stack:
    - /home/pi/MagicMirror/modules/MMM-DynamicWeather/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
    -
        at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
        at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
        at Module._load (internal/modules/cjs/loader.js:732:27)
        at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
        at Module.require (internal/modules/cjs/loader.js:959:19)
        at require (internal/modules/cjs/helpers.js:88:18)
        at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-DynamicWeather/node_helper.js:11:15)
        at Module._compile (internal/modules/cjs/loader.js:1078:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10)
    [05.10.2021 17:37.46.620] [ERROR] Whoops! There was an uncaught exception...
    [05.10.2021 17:37.46.643] [ERROR] Error: Cannot find module 'request'
    Require stack:
    - /home/pi/MagicMirror/modules/MMM-DynamicWeather/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
    -
        at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
        at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
        at Module._load (internal/modules/cjs/loader.js:732:27)
        at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
        at Module.require (internal/modules/cjs/loader.js:959:19)
        at require (internal/modules/cjs/helpers.js:88:18)
        at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-DynamicWeather/node_helper.js:11:15)
        at Module._compile (internal/modules/cjs/loader.js:1078:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) {
      code: 'MODULE_NOT_FOUND',
      requireStack: [
        '/home/pi/MagicMirror/modules/MMM-DynamicWeather/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',
        undefined
      ]
    }
    

    Someone there can help here. ???

    S F 2 Replies Last reply Oct 5, 2021, 3:51 PM Reply Quote 0
    • S Offline
      sdetweil @Assassins
      last edited by sdetweil Oct 5, 2021, 3:53 PM Oct 5, 2021, 3:51 PM

      @assassins said in 2.17.1 error with MMM-DynamicWeather:

      Cannot find module 'request

      see
      https://forum.magicmirror.builders/topic/15666/add-request-to-modules/3?_=1633448969351

      @Fozi wins!

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      F 1 Reply Last reply Oct 5, 2021, 3:59 PM Reply Quote 0
      • F Offline
        Fozi Project Sponsor @Assassins
        last edited by Oct 5, 2021, 3:51 PM

        @assassins Also with this module the request dependency is missing and needs to be installed manually.

        cd ~/MagicMirror/modules/MMM-DynamicWeather
        npm init -y
        npm install request --save
        

        This should solve it.

        HowTo: Replace PIR Sensor with a RCWL-0516 Microwave Sensor

        A 1 Reply Last reply Oct 5, 2021, 3:58 PM Reply Quote 0
        • A Offline
          Assassins @Fozi
          last edited by Oct 5, 2021, 3:58 PM

          @sdetweil and @fozi

          Love you guys, thanks alot.

          1 Reply Last reply Reply Quote 1
          • F Offline
            Fozi Project Sponsor @sdetweil
            last edited by Oct 5, 2021, 3:59 PM

            @Fozi wins!

            Probably my first and only time :beaming_face_with_smiling_eyes:

            HowTo: Replace PIR Sensor with a RCWL-0516 Microwave Sensor

            A 1 Reply Last reply Oct 5, 2021, 4:00 PM Reply Quote 0
            • A Offline
              Assassins @Fozi
              last edited by Oct 5, 2021, 4:00 PM

              @fozi:beaming_face_with_smiling_eyes: :beaming_face_with_smiling_eyes:

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