Read the statement by Michael Teeuw here.
Black screen after update - reason layer 8!
-
Hello,
since today my MM got a black screen.
When I start with " npm start dev" I got the following error[2021-04-02 14:27:32.741] [LOG] Initializing new module helper ... [2021-04-02 14:27:32.745] [LOG] Module helper loaded: MMM-DarkSkyForecast [2021-04-02 14:27:33.532] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'digest-fetch' Require stack: - /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js - /home/pi/MagicMirror/modules/default/calendar/node_helper.js - /home/pi/MagicMirror/js/app.js - /home/pi/MagicMirror/js/electron.js - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js - [2021-04-02 14:27:33.535] [LOG] Loading module helpers ...
In the update notes I can see the following
Replaced deprecated request package with node-fetch and digest-fetch.
Refactored calendar fetcher.“npm rebuild” in the calendar module doesn´t help.
It would be wonderful if someone could help me.
Thank you in advance.
Lars -
@klinge after git pull, did u do npm install to update ?
-
@sdetweil That´s it. Thank you for your quick help.
The worst part is that I had the same problem before and did it wrong again.
The problem is that I run a cronjob at night where the update is triggered automatically via git “pull && npm install”. And you had already mentioned with my last problem that this is stinky.
Maybe you have another tip for me on how to best set up an automated update.
Thanks a lot.
-
@klinge automated is trouble… and recommended is trouble
thats why I wrote my script
https://github.com/sdetweil/MagicMirror_scripts#update-to-next-magicmirror-version-from-an-existing-magicmirror-installationbut it is manual
-
@sdetweil But unfortunately I´m a lazy dog. There is nothing automated?
-
@klinge nothing I am aware of… not reliable, u change 1 file and the pull will fail
-
@sdetweil ok, I understand. Then I have to update it manualy in future. Thanks again for your help.