@sdetweil :-) I understand. But it would make your life easier with running the wrong script, messing up their install and you having to go through a 100 different things for them to do to get it fixed… :-)
Read the statement by Michael Teeuw here.
Posts
-
RE: how to update my MM
-
RE: how to update my MM
@sdetweil said in how to update my MM:
what? check if what exist?
What I was referring to is for a single script to run, check if MagicMirror exist, check version and upgrade if not on the latest, if not exist then do a fresh install. This way whoever runs your script does not run the wrong one. Just a suggestion.
-
RE: how to update my MM
@sdetweil Maybe combine the script and check if exist then update, else frsh install? Would that work?
-
RE: Electron Security Issues
@sdetweil And so it begins. Modules like the MMM-Hue and others that talk to internal devices on the local network is going to become a problem.
-
RE: jclarke0000 - MMM-MyTTC
@vince Have a read through this below thread. There is a possible solution there as well.
https://forum.magicmirror.builders/topic/16131/mmm-hue-cors-policy-issue/13?_=1642017111400 -
RE: v2.18.0 update gave black screen, then nothing.
@richard238 run
npm i mysql --forceThe stylint is a dev dependency. -
RE: v2.18.0 update gave black screen, then nothing.
@richard238 In the MMM-MysqlQuery folder,
npm i mysql -
RE: v2.18.0 update gave black screen, then nothing.
@richard238 seems like styleint is giving issues, Can you just try and install mysql and see if that resolves your issue?
-
RE: v2.18.0 update gave black screen, then nothing.
@richard238 can you check if package-lock.json exist. if it does delete it
rm package-lock.jsonthen try again. Also, did you do the uninstall in the MagicMirror folder first? -
RE: v2.18.0 update gave black screen, then nothing.
@richard238 Just google update npm and update node. Once those are updated then you can do the rest. Uninstall mysql and run npm install in the MMM-MysqlQuery folder. Hopefully that will resolve the issues.
-
RE: v2.18.0 update gave black screen, then nothing.
@richard238 You want to update both first.
-
RE: v2.18.0 update gave black screen, then nothing.
@richard238 It seems your versions of npm and node might be older than the required versions. run the following
node -v npm -v -
RE: v2.18.0 update gave black screen, then nothing.
@richard238 I think you installed the latest version in the MagicMirror folder whereas the MysqlQuery wants version 6.4.1. Go to the root of MagicMirror and run
npm uninstall mysql. Once that is done thencd modules/MMM-MysqlQuery. Then just run npm install in the folder. It should then install the dependencies that it require. -
RE: v2.18.0 update gave black screen, then nothing.
@richard238 No, You need to do the following:
cd ~.MagicMirror/modules/MMM-MysqlQuery npm init -y npm install mysql --saveThere may be other missing modules.
-
RE: v2.18.0 update gave black screen, then nothing.
@richard238 said in v2.18.0 update gave black screen, then nothing.:
0|MagicMir | [06.01.2022 08:34.09.653] [ERROR] App threw an error during load
0|MagicMir | [06.01.2022 08:34.09.658] [ERROR] Error: Cannot find module ‘mysql’Your error!
-
RE: v2.18.0 update gave black screen, then nothing.
@richard238 Have a look at the below post. It might solve some of your issues.
https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later
-
RE: MMM-Hue CORS Policy Issue
@karsten13 So I have been tinkering with the MMM-Hue module a bit and have replaced
jQuerywhich seems to invokeXMLHttpRequest, withnode-fetch, albeit the older version (2.6.1) of node-fetch, but it now returns data without requiring a certificate and the use of https. -
RE: Electron Security Issues
@sdetweil Have you seen these errors before? Mirror still starts though. I have just noticed it now as I usually start my mirror from the cron.
[04.01.2022 19:49.27.681] [LOG] Connecting socket for: MMM-Remote-Control [04.01.2022 19:49.27.686] [LOG] Starting node helper for: MMM-Remote-Control [04.01.2022 19:49.27.724] [LOG] Connecting socket for: calendar [04.01.2022 19:49.27.729] [LOG] Starting node helper for: calendar [04.01.2022 19:49.27.732] [LOG] Sockets connected & modules started ... [04.01.2022 19:49.29.057] [LOG] Launching application. [28306:0104/194931.715456:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization [04.01.2022 19:49.33.896] [ERROR] ERROR! Could not find main module js file for MagicMirror-backup-restore [28425:0104/194936.968648:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization [28481:0104/194939.078132:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization [28499:0104/194939.733204:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.