Read the statement by Michael Teeuw here.
"Error: Cannot find module 'eventyoshi'" - npm restart after MM Update to 2.15.0
-
Hello,
after having some troubles with two modules, I decided to update my MagicMirror. I updated npm, MM (via script) and every module in subfolder modules.
Now the MagicMirror Screen stays black and I get the following Log with “npm restart” at my terminal with the Error of the headline. This is the prompt using the default config file. With my own the error persists but is only stated after loading the module “compliments”.
A weird fact: I don’t even know a module called ‘eventyoshi’.Anyone an idea, how I can fix this?
Thank you very much!Greetings,
BlackZero> magicmirror@2.15.0 restart > npm stop --if-present && npm start > magicmirror@2.15.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [21.05.2021 01:54.58.826] [LOG] Starting MagicMirror: v2.15.0 [21.05.2021 01:54.58.838] [LOG] Loading config ... [21.05.2021 01:54.58.850] [LOG] Loading module helpers ... [21.05.2021 01:54.58.854] [LOG] No helper found for module: alert. [21.05.2021 01:54.59.154] [LOG] Initializing new module helper ... [21.05.2021 01:54.59.156] [LOG] Module helper loaded: updatenotification [21.05.2021 01:54.59.158] [LOG] No helper found for module: clock. [21.05.2021 01:54.59.937] [LOG] Initializing new module helper ... [21.05.2021 01:54.59.938] [LOG] Module helper loaded: calendar [21.05.2021 01:54.59.940] [LOG] No helper found for module: compliments. [21.05.2021 01:54.59.944] [LOG] Initializing new module helper ... [21.05.2021 01:54.59.946] [LOG] Module helper loaded: currentweather [21.05.2021 01:54.59.950] [LOG] Initializing new module helper ... [21.05.2021 01:54.59.951] [LOG] Module helper loaded: weatherforecast [21.05.2021 01:54.59.963] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'eventyoshi' Require stack: - /home/pi/MagicMirror/node_modules/feedme/lib/feedme.js - /home/pi/MagicMirror/modules/default/newsfeed/newsfeedfetcher.js - /home/pi/MagicMirror/modules/default/newsfeed/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 - [21.05.2021 01:54.59.965] [LOG] Loading module helpers ... [21.05.2021 01:54.59.967] [LOG] No helper found for module: alert. [21.05.2021 01:54.59.969] [LOG] Initializing new module helper ... [21.05.2021 01:54.59.970] [LOG] Module helper loaded: updatenotification [21.05.2021 01:54.59.972] [LOG] No helper found for module: clock. [21.05.2021 01:54.59.974] [LOG] Initializing new module helper ... [21.05.2021 01:54.59.975] [LOG] Module helper loaded: calendar [21.05.2021 01:54.59.982] [LOG] No helper found for module: compliments. [21.05.2021 01:54.59.984] [LOG] Initializing new module helper ... [21.05.2021 01:54.59.985] [LOG] Module helper loaded: currentweather [21.05.2021 01:54.59.987] [LOG] Initializing new module helper ... [21.05.2021 01:54.59.988] [LOG] Module helper loaded: weatherforecast [21.05.2021 01:54.59.998] [ERROR] App threw an error during load [21.05.2021 01:55.00.003] [ERROR] Error: Cannot find module 'eventyoshi' Require stack: - /home/pi/MagicMirror/node_modules/feedme/lib/feedme.js - /home/pi/MagicMirror/modules/default/newsfeed/newsfeedfetcher.js - /home/pi/MagicMirror/modules/default/newsfeed/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:972:15) at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at Module._load (internal/modules/cjs/loader.js:848:27) at Function.f._load (electron/js2c/asar_bundle.js:5:12633) at Module.require (internal/modules/cjs/loader.js:1032:19) at require (internal/modules/cjs/helpers.js:72:18) at Object.<anonymous> (/home/pi/MagicMirror/node_modules/feedme/lib/feedme.js:1:24) at Module._compile (internal/modules/cjs/loader.js:1152:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10) [21.05.2021 01:55.00.006] [ERROR] Whoops! There was an uncaught exception... [21.05.2021 01:55.00.020] [ERROR] Error: Cannot find module 'eventyoshi' Require stack: - /home/pi/MagicMirror/node_modules/feedme/lib/feedme.js - /home/pi/MagicMirror/modules/default/newsfeed/newsfeedfetcher.js - /home/pi/MagicMirror/modules/default/newsfeed/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:972:15) at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at Module._load (internal/modules/cjs/loader.js:848:27) at Function.f._load (electron/js2c/asar_bundle.js:5:12633) at Module.require (internal/modules/cjs/loader.js:1032:19) at require (internal/modules/cjs/helpers.js:72:18) at Object.<anonymous> (/home/pi/MagicMirror/node_modules/feedme/lib/feedme.js:1:24) at Module._compile (internal/modules/cjs/loader.js:1152:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/pi/MagicMirror/node_modules/feedme/lib/feedme.js', '/home/pi/MagicMirror/modules/default/newsfeed/newsfeedfetcher.js', '/home/pi/MagicMirror/modules/default/newsfeed/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 ] } [21.05.2021 01:55.00.030] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [21.05.2021 01:55.00.032] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [21.05.2021 01:55.00.429] [LOG] Launching application.
-
Perhaps, this information can be a help:
Platform: Raspberry Pi 3
Node Version: I don’t know - how can i check on this?
MagicMirror Version: 2.15.0Description: Please take a look at the post above.
Steps to Reproduce: Puh. Hard to describe.
I updated npm, followed by a MM update via script and a manual update of all modules and reinstall in npm.Expected Results: Magic Mirror starts and shows the Screen with the configured Modules.
Actual Results: Black Screen, Error stated
Configuration: Happens with my own config file as well as with the default config.
Additional Notes: As mentioned - i don’t even know a module named ‘eventyoshi’
-
@blackzero in the MagicMirror folder do
npm install eventyoshi
it’s used by a dependency of a dependent library the newsfeed module uses
when u say update via script, what do you mean?
-
@sdetweil
Thank you very much for your help. I’ll check soon.I used the update script of this git: https://github.com/sdetweil/MagicMirror_scripts
-
@sdetweil
It did the job. Had two more Errors with modules:
“has-binary2”
“after”
But I could install them with npm install.Thank you very much!