Read the statement by Michael Teeuw here.
MMM-Screencast erro
-
That is why almost no module works for me … I’m struggling to put the Home assistant and also nothing !!
-
@iorifly seems one of the module dependencies is garbled… try this
cd ~/MagicMirror/modules/MMM-Screencast rm -rf node_modules npm install cd ~/MagicMirror npm start
-
@sdetweil said in MMM-Screencast erro:
npm install
pi@raspberrypi:~/MagicMirror/modules/MMM-Screencast $ npm install > electron@3.1.13 postinstall /home/pi/MagicMirror/modules/MMM-Screencast/node_modules/electron > node install.js added 208 packages from 211 contributors and audited 369 packages in 55.818s 1 package is looking for funding run `npm fund` for details found 11 vulnerabilities (5 low, 2 moderate, 4 high) run `npm audit fix` to fix them, or `npm audit` for details pi@raspberrypi:~/MagicMirror/modules/MMM-Screencast $
-
@iorifly ok, and restarting ?
-
Worked, thank you!!
-
Could you help me with the Home Assistant module?
-
@iorifly sorry, don’t know anything about it… what is the problem?
-
pi@raspberrypi:~/MagicMirror $ npm start > magicmirror@2.10.0 start /home/pi/MagicMirror > ./run-start.sh [17:20:12.438] [LOG] Starting MagicMirror: v2.10.0 [17:20:12.470] [LOG] Loading config ... [17:20:12.491] [LOG] Loading module helpers ... [17:20:12.495] [LOG] No helper found for module: alert. [17:20:12.748] [LOG] Initializing new module helper ... [17:20:12.751] [LOG] Module helper loaded: updatenotification [17:20:12.754] [LOG] No helper found for module: clock. [17:20:14.468] [LOG] Initializing new module helper ... [17:20:14.470] [LOG] Module helper loaded: calendar [17:20:14.472] [LOG] No helper found for module: compliments. [17:20:15.942] [LOG] Initializing new module helper ... [17:20:15.944] [LOG] Module helper loaded: MMM-DarkSkyForecast [17:20:16.102] [LOG] Initializing new module helper ... [17:20:16.104] [LOG] Module helper loaded: newsfeed [17:20:16.121] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'underscore' [17:20:16.125] [LOG] Loading module helpers ... [17:20:16.128] [LOG] No helper found for module: alert. [17:20:16.131] [LOG] Initializing new module helper ... [17:20:16.133] [LOG] Module helper loaded: updatenotification [17:20:16.136] [LOG] No helper found for module: clock. [17:20:16.139] [LOG] Initializing new module helper ... [17:20:16.141] [LOG] Module helper loaded: calendar [17:20:16.143] [LOG] No helper found for module: compliments. [17:20:16.145] [LOG] Initializing new module helper ... [17:20:16.147] [LOG] Module helper loaded: MMM-DarkSkyForecast [17:20:16.150] [LOG] Initializing new module helper ... [17:20:16.152] [LOG] Module helper loaded: newsfeed [17:20:16.159] [ERROR] App threw an error during load [17:20:16.163] [ERROR] Error: Cannot find module 'underscore' at Module._resolveFilename (internal/modules/cjs/loader.js:602:15) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at Function.Module._load (internal/modules/cjs/loader.js:528:25) at Module.require (internal/modules/cjs/loader.js:658:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-HASS/node_helper.js:14:9) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-HASS/node_helper.js:227:3) at Module._compile (internal/modules/cjs/loader.js:711:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) [17:20:16.171] [LOG] Whoops! There was an uncaught exception... [17:20:16.174] [ERROR] { Error: Cannot find module 'underscore' at Module._resolveFilename (internal/modules/cjs/loader.js:602:15) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at Function.Module._load (internal/modules/cjs/loader.js:528:25) at Module.require (internal/modules/cjs/loader.js:658:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-HASS/node_helper.js:14:9) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-HASS/node_helper.js:227:3) at Module._compile (internal/modules/cjs/loader.js:711:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) code: 'MODULE_NOT_FOUND' } [17:20:16.209] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [17:20:16.211] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [17:20:16.925] [LOG] Launching application. [17:20:34.995] [LOG] Shutting down server... [17:20:35.006] [LOG] Stopping module helper: updatenotification [17:20:35.008] [LOG] Stopping module helper: calendar [17:20:35.010] [LOG] Stopping module helper: MMM-DarkSkyForecast [17:20:35.012] [LOG] Stopping module helper: newsfeed [17:20:35.014] [LOG] Stopping module helper: updatenotification [17:20:35.016] [LOG] Stopping module helper: calendar [17:20:35.018] [LOG] Stopping module helper: MMM-DarkSkyForecast [17:20:35.019] [LOG] Stopping module helper: newsfeed pi@raspberrypi:~/MagicMirror $
I confess I don’t know if the error is only in MM. But nothing happens in the Home assistant. That is, accuses nothing.
-
@iorifly said in MMM-Screencast erro:
Cannot find module ‘underscore’
looks like the module author forgot to update the package.json to indicate this library was needed
do thiscd ~/MagicMirror/modules/MMM-HASS npm install underscore cd ~/MagicMirror npm start
-
I opened issue in the module github repo
https://github.com/aserramonner/MMM-HASS/issues/14