Read the statement by Michael Teeuw here.
MMM-ModuleToggleButton suddenly broken?
-
@philie I see the postinstall script needed an update
do a
git pull
in the module folder
then
npm install again -
@sdetweil
Thank you Sam!
the edited script did not work for me but the commands worked. so I executed them manually:philie@magicmirror:~/MagicMirror $ sudo npm install @electron/rebuild added 88 packages, and removed 74 packages in 25s 220 packages are looking for funding run `npm fund` for details philie@magicmirror:~/MagicMirror $ node_modules/.bin/electron-rebuild ✔ Rebuild Complete philie@magicmirror:~/MagicMirror $
unfortunately the next issue is already on the dorstep:
message:14:59:24.366] [31m[ERROR][39m [31m(node:2306) UnhandledPromiseRejectionWarning: Error: The module '/home/philie/MagicMirror/modules/MMM-ModuleToggleButton/node_modules/epoll/build/Release/epoll.node'[39m,
So it looks like the thing about epoll is not yet solved…
-
@philie never use sudo…
the electron-rebuild command has to be done from inside the module folder(togglebuttons), not the MagicMirror folder
-
@sdetweil
Thank you very much! This did the trick. concerning sudo… it’s sometimes confusing because often I get the message, I do not have enough rights for some commands… -
@philie in general for MM there is NEVER a need for sudo… it will cause problems and LATER you will need to user sudo AGAIN…
the SYSTEM commands may need to use sudo…
apt update, upgrade, editing files in the /etc folder
because THOSE are owned by the system and should NOT be editable by a user
(they are protected on purpose)the fact that the postinstall script failed is probably because you did sudo before and now the npm files are owned by root instead of user… (see line 1 above)