Read the statement by Michael Teeuw here.
MMM-Carousel not displaying
-
@sdetweil ```
pi@raspberrypi:~ $ pm2 logs --lines=50 MagicMirror
[TAILING] Tailing last 50 lines for [MagicMirror] process (change the value with --lines option)
/home/pi/.pm2/logs/MagicMirror-error.log last 50 lines:
0|MagicMir | - /home/pi/MagicMirror/js/electron.js
0|MagicMir | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
0|MagicMir | -
0|MagicMir | [14.12.2021 16:02.14.185] [ERROR] App threw an error during load
0|MagicMir | [14.12.2021 16:02.14.187] [ERROR] Error: Cannot find module ‘valid-url’
0|MagicMir | Require stack:
0|MagicMir | - /home/pi/MagicMirror/modules/MMM-CalendarExt/node_helper.js
0|MagicMir | - /home/pi/MagicMirror/js/app.js
0|MagicMir | - /home/pi/MagicMirror/js/electron.js
0|MagicMir | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
0|MagicMir | -
0|MagicMir | at Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
0|MagicMir | at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
0|MagicMir | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
0|MagicMir | at Module._load (internal/modules/cjs/loader.js:848:27)
0|MagicMir | at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
0|MagicMir | at Module.require (internal/modules/cjs/loader.js:1032:19)
0|MagicMir | at require (internal/modules/cjs/helpers.js:72:18)
0|MagicMir | at Object. (/home/pi/MagicMirror/modules/MMM-CalendarExt/node_helper.js:3:18)
0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:1152:30)
0|MagicMir | at Object.Module._extensions…js (internal/modules/cjs/loader.js:1173:10)
0|MagicMir | [14.12.2021 16:02.14.197] [ERROR] Whoops! There was an uncaught exception…
0|MagicMir | [14.12.2021 16:02.14.203] [ERROR] Error: Cannot find module ‘valid-url’
0|MagicMir | Require stack:
0|MagicMir | - /home/pi/MagicMirror/modules/MMM-CalendarExt/node_helper.js
0|MagicMir | - /home/pi/MagicMirror/js/app.js
0|MagicMir | - /home/pi/MagicMirror/js/electron.js
0|MagicMir | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
0|MagicMir | -
0|MagicMir | at Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
0|MagicMir | at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
0|MagicMir | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) -
@pastormingle said in MMM-Carousel not displaying:
Error: Cannot find module ‘valid-url’
what is so hard about this?
-
@sdetweil the module name is valid-url… i though it’s looking for a URL… http://url…
-
@pastormingle then
npm install valid-url --save
in the mm module folder
because xxx is valid-url in that error message
-
@sdetweil ```
^C
pi@raspberrypi:~ $ npm install valid-url --save
npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“arm”})- valid-url@1.0.9
updated 1 package and audited 964 packages in 19.443s
112 packages are looking for funding
runnpm fund
for detailsfound 22 vulnerabilities (19 moderate, 3 high)
runnpm audit fix
to fix them, ornpm audit
for details
pi@raspberrypi:~ $ cd MagicMirror
pi@raspberrypi:~/MagicMirror $ cd modules
pi@raspberrypi:~/MagicMirror/modules $ dir
Archive calendar_monthly default MMM-CalendarExt MMM-CalendarExtMinimonth MMM-CalendarExtTimeline MMM-Carousel MMM-GoogleTasks MMM-ip MMM-PaprikaMenu MMM-RAIN-MAP MMM-RAIN-MAP-L MMM-RAIN-MAPold
pi@raspberrypi:~/MagicMirror/modules $ npm install valid-url --save
npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“arm”})- valid-url@1.0.9
added 1 package and audited 967 packages in 20.435s
112 packages are looking for funding
runnpm fund
for detailsfound 20 vulnerabilities (18 moderate, 2 high)
runnpm audit fix
to fix them, ornpm audit
for details
pi@raspberrypi:~/MagicMirror/modules $ - valid-url@1.0.9
-
@pastormingle said in MMM-Carousel not displaying:
pi@raspberrypi:~/MagicMirror/modules
in the folder of the mm module having trouble
/home/pi/MagicMirror/modules/MMM-CalendarExt
-
@sdetweil ```
pi@raspberrypi:~/MagicMirror/modules/MMM-CalendarExt $ npm install valid-url --save- valid-url@1.0.9
added 1 package and audited 2 packages in 0.951s
found 0 vulnerabilities
- valid-url@1.0.9
-
@pastormingle yes and then start MagicMirror
if u still get a black screen the check again…
-
@pastormingle ```
pi@raspberrypi:~/MagicMirror/modules/MMM-CalendarExt $ pm2 logs --lines=50 MagicMirror
[TAILING] Tailing last 50 lines for [MagicMirror] process (change the value with --lines option)
/home/pi/.pm2/logs/MagicMirror-error.log last 50 lines:
0|MagicMir | -
0|MagicMir | [14.12.2021 16:02.14.185] [ERROR] App threw an error during load
0|MagicMir | [14.12.2021 16:02.14.187] [ERROR] Error: Cannot find module ‘valid-url’
0|MagicMir | Require stack:
0|MagicMir | - /home/pi/MagicMirror/modules/MMM-CalendarExt/node_helper.js
0|MagicMir | - /home/pi/MagicMirror/js/app.js
0|MagicMir | - /home/pi/MagicMirror/js/electron.js
0|MagicMir | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
0|MagicMir | -
0|MagicMir | at Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
0|MagicMir | at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
0|MagicMir | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
0|MagicMir | at Module._load (internal/modules/cjs/loader.js:848:27)
0|MagicMir | at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
0|MagicMir | at Module.require (internal/modules/cjs/loader.js:1032:19)
0|MagicMir | at require (internal/modules/cjs/helpers.js:72:18)
0|MagicMir | at Object. (/home/pi/MagicMirror/modules/MMM-CalendarExt/node_helper.js:3:18)
0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:1152:30)
0|MagicMir | at Object.Module._extensions…js (internal/modules/cjs/loader.js:1173:10)
0|MagicMir | [14.12.2021 16:02.14.197] [ERROR] Whoops! There was an uncaught exception…
0|MagicMir | [14.12.2021 16:02.14.203] [ERROR] Error: Cannot find module ‘valid-url’
0|MagicMir | Require stack:
0|MagicMir | - /home/pi/MagicMirror/modules/MMM-CalendarExt/node_helper.js
0|MagicMir | - /home/pi/MagicMirror/js/app.js
0|MagicMir | - /home/pi/MagicMirror/js/electron.js
0|MagicMir | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
0|MagicMir | -
0|MagicMir | at Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
0|MagicMir | at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
0|MagicMir | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
0|MagicMir | at Module._load (internal/modules/cjs/loader.js:848:27)
0|MagicMir | at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
0|MagicMir | at Module.require (internal/modules/cjs/loader.js:1032:19)
0|MagicMir | at require (internal/modules/cjs/helpers.js:72:18)
0|MagicMir | at Object. (/home/pi/MagicMirror/modules/MMM-CalendarExt/node_helper.js:3:18)
0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:1152:30)
0|MagicMir | at Object.Module._extensions…js (internal/modules/cjs/loader.js:1173:10) {
0|MagicMir | code: ‘MODULE_NOT_FOUND’,
0|MagicMir | requireStack: [
0|MagicMir | ‘/home/pi/MagicMirror/modules/MMM-CalendarExt/node_helper.js’,
0|MagicMir | ‘/home/pi/MagicMirror/js/app.js’,
0|MagicMir | ‘/home/pi/MagicMirror/js/electron.js’,
0|MagicMir | ‘/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js’,
0|MagicMir | undefined -
@pastormingle that message is from
16:02.14.187so not recently
pm2 stop all
pm2 flush
pm2 start 0wait
pm2 stop all
pm2 logs…