Read the statement by Michael Teeuw here.
MM not starting after update
-
I updated my MagicMirror to latest version, and now it does not start.
pm2 logs mm
shows this:
0|mm | A JavaScript error occurred in the main process 0|mm | Uncaught Exception: 0|mm | Error: Cannot find module 'module-alias/register' 0|mm | at Module._resolveFilename (internal/modules/cjs/loader.js:602:15) 0|mm | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12) 0|mm | at Function.Module._load (internal/modules/cjs/loader.js:528:25) 0|mm | at Module.require (internal/modules/cjs/loader.js:658:17) 0|mm | at require (internal/modules/cjs/helpers.js:20:18) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:15:1) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:283:3) 0|mm | at Module._compile (internal/modules/cjs/loader.js:711:30) 0|mm | at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) 0|mm | at Module.load (internal/modules/cjs/loader.js:620:32)
I had a feeling I shouldn’t do this, but I did anyway. How to fix it?
-
@jani-karna how did u update?
-
same here, I just did an
git stash
git pullin the Magicmirrir directory
-
@dicker182 also need npm install
-
@sdetweil thats it. Thank you!
-
npm install helped me also. Thank you!
-
@jani-karna thanks, can u tell me where u got the update instructions?
-
@sdetweil
from here:https://github.com/MichMich/MagicMirror#updating-you-magicmirror
and followed the instructions in “updating”-section. I first did the “test” update and then after no problems used the “apply” as instructed there.
It didn’t mention “npm install” there. -
@jani-karna ok, the script WOULD have done the update, but it failed…
can u send me the MagicMirror/installers/upgrade.log?
same id as here on gmail…
thanks
-
@sdetweil should be on its way now.