Read the statement by Michael Teeuw here.
MMM-Button doesn't work
-
Well, i googled a lot and their seem to be different soloutions. But i don’t want to do anything wrong ^^
some say the npm Version is the problem. Mine is 3.10.3 and my Node-Version is 6.6.0. Dont know if they are the newest… people writing that a simple reinstall of both solve their problem. But i was scared trying that by myself.
Some other say you have to install the module directly via npm instead of clone before. But i am not sure as well.
The only thing i tried was going to the
/MagicMirror/modules/MMM-Button
and do anpm install --save-dev electron-rebuild
. But that didnt solve the problem. Not sure if i was doing it right :(Well, i really try to find a soloution cause i spent much time in the mirror and it worked very well so far, but my english isnt very well and my knowledge about Linux and such that stuff is not so good :/
So i don’t want to do things wrong. Hope (i’m sure) you guys can help me. -
@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