Read the statement by Michael Teeuw here.
MMM-Button doesn't work
-
@cruunnerr I had this
module version mismatch
before, too. I updatednode
andnpm
and it went away, but I do not know if that will solve your problem + you seem to have an up to date version. Maybe try and delete yournode_modules
folders (in theMagicMirror
folder and you modules folder, i.e.MagicMirror/modules/MMM-Button
), and do annpm install
again? -
So i did the following:
I succesfully updated npm to 3.10.8. Node told me it is up to date. then I deleted the MMM-Button folder with
rm -rf
. Then i follwed the install-guide again (clone folder, went to MMM-Button andnpm Install
), but get the same result as before! Is the Button-module not compatible with the newest Node/npm Version?What do you mean with deleting the node_modules folder in the MagicMirror directory? o.0 there are many many files. When i deleted it what should i do after that? i am a little bit scared, sorry for asking so many questions. ^^
-
@cruunnerr This folder (
MagicMirror/node_modules
) was created during your installation, so you can safely delete it (but only this folder and everything in it. You just need to do the installation again (anpm install
will create the exact same folders and files). Did you use the automatic installer script?Basically it looks like you have this problem. There are also some suggestions there.
-
So i will delet the node_modules folder in the magicmirror directory. then i go to
cd ~/MagicMirror
and will do anpm install
, right? should i do anpm update
or “npm rebuild” before the install?edit: yes, i used the automatic installer
-
@cruunnerr Yes, that sounds about right, you can try the rebuild thing first.
-
ok, will try tomorrow and report ;)
thank you very very much for spending your time -
so, i tried everthing but cannot get it work at all. tried it many times…but every time i did the “install” i got some warnings. tried to get them away with install the newest versions and it shows me that it was succesfull, but always get the same warnings… dont know why and if they are significantly.
edit: why others dont have this problem? I used the “complete setup tutorial”. or is it cause i used the automatic installer?
-
no more ideas?
-
I had the same issue and was able to fix it.
You need to execute electron-rebuild.
Just follow these steps: https://github.com/electron/electron-rebuild