Read the statement by Michael Teeuw here.
MMM-CalendarWeek (MODULE_NOT_FOUND) - MM2.15.0
-
Hi,
Could someone please advise why I am getting this error when trying to run MM with MMM-CalendarWeek configured?
npm install does not seem to do enything when running within
/home/pi/MagicMirror/modules/MMM-CalendarWeeknpm start
[06.06.2021 11:20.54.870] [LOG] Starting MagicMirror: v2.15.0
[06.06.2021 11:20.54.879] [LOG] Loading config …
[06.06.2021 11:20.54.892] [LOG] Loading module helpers …
[06.06.2021 11:20.54.896] [LOG] No helper found for module: clock.
[06.06.2021 11:20.55.807] [LOG] Initializing new module helper …
[06.06.2021 11:20.55.808] [LOG] Module helper loaded: calendar
[06.06.2021 11:20.55.898] [LOG] Initializing new module helper …
[06.06.2021 11:20.55.900] [LOG] Module helper loaded: MMM-OpenWeatherMapForecast
***[06.06.2021 11:20.55.905] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘valid-url’
Require stack:- /home/pi/MagicMirror/modules/MMM-CalendarWeek/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***
[06.06.2021 11:20.55.907] [LOG] Loading module helpers …
[06.06.2021 11:20.55.909] [LOG] No helper found for module: clock.
[06.06.2021 11:20.55.910] [LOG] Initializing new module helper …
[06.06.2021 11:20.55.912] [LOG] Module helper loaded: calendar
[06.06.2021 11:20.55.913] [LOG] Initializing new module helper …
[06.06.2021 11:20.55.914] [LOG] Module helper loaded: MMM-OpenWeatherMapForecast
********[06.06.2021 11:20.55.917] [ERROR] App threw an error during load
[06.06.2021 11:20.55.921] [ERROR] Error: Cannot find module ‘valid-url’
Require stack:- /home/pi/MagicMirror/modules/MMM-CalendarWeek/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. (/home/pi/MagicMirror/modules/MMM-CalendarWeek/node_helper.js:9:16)
at Module._compile (internal/modules/cjs/loader.js:1152:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1173:10)
[06.06.2021 11:20.55.924] [ERROR] Whoops! There was an uncaught exception…
[06.06.2021 11:20.55.934] [ERROR] Error: Cannot find module ‘valid-url’
Require stack: - /home/pi/MagicMirror/modules/MMM-CalendarWeek/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. (/home/pi/MagicMirror/modules/MMM-CalendarWeek/node_helper.js:9:16)
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/modules/MMM-CalendarWeek/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
]
}
[06.06.2021 11:20.55.939] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[06.06.2021 11:20.55.940] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[06.06.2021 11:20.56.394] [LOG] Launching application.
-
@peggleg yes, reported back in April.
MM has removed items connected the the request library, which has security issues and will not be updated.
it seems a number of modules did not document using libraries in their package.json file.
to work around,
in the module or mm folder do
npm install valid-url
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login