Read the statement by Michael Teeuw here.
Back to Booting to black
-
start the MM in debug mode
npm start dev
then select the console tab… look for errors (red text)
altho usually black screen is caused by failures in the node modules
so, minimze MM, alt-spacebar, n
and look at errors in the console window (used above for npm start -
-
@dwleo well, you have to be IN the MM folder
cd MagicMirror
-
@sdetweil
WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘moment-timezone’ -
Sometimes I feel like a real noob. Anyway the config.js file is there right where it always has been.
-
from the MM folder run
node tests/configs/check_config.js
and work thru the errors from top to bottom
rerunning as needed
-
@dwleo yes, but there is a syntax error from all the editing you have done
make a rule,
1 change at a time,
AND save the working config.js before u edit -
@sdetweil
Yeah, you are right. (sigh)
Anyway I ran it and got this:
pi@raspberrypi:~/MagicMirror $ node tests/configs/check_config.js
Checking file… /home/pi/MagicMirror/config/config.js
Your configuration file doesn’t contain syntax errors :) -
@dwleo ok, then you have a module name wrong, or u deleted it
Cannot find module ‘moment-timezone’
OR, you installed a module, but didn’t finish ITS install, by going to ITS folder and running npm install
when a module uses other modules, (some not used by base MM), you have to do a manual step to install ITS dependencies
so, I would look thru the modules u might have just installed, and edit the package.json file in each and look for moment-timezone… if its there, then u probably need to run npm install in that folder
-
@sdetweil
Thank you. I will try that.