Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module_not_found #5

Closed
scottdsauer opened this issue Jan 23, 2022 · 3 comments
Closed

module_not_found #5

scottdsauer opened this issue Jan 23, 2022 · 3 comments

Comments

@scottdsauer
Copy link

getting error, I checked install and code, seems to be ok. Any ideas?

magicmirror@2.18.0 start
DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js

[23.01.2022 08:45.25.609] [LOG] Starting MagicMirror: v2.18.0
[23.01.2022 08:45.25.619] [LOG] Loading config ...
[23.01.2022 08:45.25.625] [LOG] Loading module helpers ...
[23.01.2022 08:45.25.627] [LOG] No helper found for module: alert.
[23.01.2022 08:45.25.645] [LOG] Initializing new module helper ...
[23.01.2022 08:45.25.646] [LOG] Module helper loaded: updatenotification
[23.01.2022 08:45.25.648] [LOG] No helper found for module: clock.
[23.01.2022 08:45.25.651] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'request'
Require stack:

  • /home/pi/MagicMirror/modules/MMM-Peloton/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

[23.01.2022 08:45.25.653] [LOG] Loading module helpers ...
[23.01.2022 08:45.25.654] [LOG] No helper found for module: alert.
[23.01.2022 08:45.25.655] [LOG] Initializing new module helper ...
[23.01.2022 08:45.25.656] [LOG] Module helper loaded: updatenotification
[23.01.2022 08:45.25.657] [LOG] No helper found for module: clock.
[23.01.2022 08:45.25.659] [ERROR] App threw an error during load
[23.01.2022 08:45.25.662] [ERROR] Error: Cannot find module 'request'
Require stack:

  • /home/pi/MagicMirror/modules/MMM-Peloton/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 (node:internal/modules/cjs/loader:940:15)
    at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1128)
    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at Object. (/home/pi/MagicMirror/modules/MMM-Peloton/node_helper.js:1:15)
    at Module._compile (node:internal/modules/cjs/loader:1116:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
    [23.01.2022 08:45.25.663] [ERROR] Whoops! There was an uncaught exception...
    [23.01.2022 08:45.25.669] [ERROR] Error: Cannot find module 'request'
    Require stack:
  • /home/pi/MagicMirror/modules/MMM-Peloton/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 (node:internal/modules/cjs/loader:940:15)
    at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1128)
    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at Object. (/home/pi/MagicMirror/modules/MMM-Peloton/node_helper.js:1:15)
    at Module._compile (node:internal/modules/cjs/loader:1116:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/pi/MagicMirror/modules/MMM-Peloton/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
    ]
    }
    [23.01.2022 08:45.25.671] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    [23.01.2022 08:45.25.672] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    [23.01.2022 08:45.26.016] [LOG] Launching application.
    ^C/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
@jschless
Copy link

You need to install the request library. In the MMM-Peloton directory, run the following command:
npm install request

That ought to do it.

@scottdsauer
Copy link
Author

scottdsauer commented Jan 23, 2022 via email

@scottdsauer
Copy link
Author

scottdsauer commented Jan 23, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants