Read the statement by Michael Teeuw here.
Magic Mirror wont start!
-
I have had my magic mirror running for more than two years.
I have a crontab that turns it off at night and a time that turns in on in the morning. Lately when it boots in the morning The Os boots up but the mirror app wont come up. After recycling the power it will come up again. But now It wont com up at all.
This is the message it get when I run pm2 start mm:pi@Magicmirror:~ $ pm2 start mm
internal/modules/cjs/loader.js:638
throw err;
^Error: Cannot find module ‘fclone’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/usr/lib/node_modules/pm2/lib/API.js:16:21)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
pi@Magicmirror:~ $Any help would be appreciated.
-
@larryE I would try
pm2 update
or
reinstall pm2pm2 unstartup
— execute the command it gives you
npm install -g pm2
(may need sudo in front of that)
pm2 startup
— execute the command it gives youpm2 start mm
pm2 save -
@larryE thought I had posted
sudo npm install fclone -g
this is starting to sound like corrupt sd card…
-
I spent the last three days rebuilding my mirror with a new SD card. Same of the apps were not compatible with the new mirror os. I had to do a lot of relearning.