• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-Button doesn't work

Scheduled Pinned Locked Moved Troubleshooting
18 Posts 3 Posters 11.8k Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    cruunnerr
    last edited by paviro Oct 3, 2016, 12:38 PM Sep 30, 2016, 6:26 PM

    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 a npm 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.

    J 1 Reply Last reply Oct 1, 2016, 11:10 AM Reply Quote 0
    • J Offline
      Jopyth Moderator @cruunnerr
      last edited by Oct 1, 2016, 11:10 AM

      @cruunnerr I had this module version mismatch before, too. I updated node and npm 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 your node_modules folders (in the MagicMirror folder and you modules folder, i.e. MagicMirror/modules/MMM-Button), and do an npm install again?

      Helpful sticky: How to troubleshoot

      1 Reply Last reply Reply Quote 0
      • C Offline
        cruunnerr
        last edited by paviro Oct 3, 2016, 12:38 PM Oct 1, 2016, 11:59 AM

        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 and npm 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. ^^

        J 1 Reply Last reply Oct 1, 2016, 6:26 PM Reply Quote 0
        • J Offline
          Jopyth Moderator @cruunnerr
          last edited by Jopyth Oct 1, 2016, 6:26 PM Oct 1, 2016, 6:26 PM

          @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 (a npm 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.

          Helpful sticky: How to troubleshoot

          1 Reply Last reply Reply Quote 0
          • C Offline
            cruunnerr
            last edited by paviro Oct 3, 2016, 12:38 PM Oct 1, 2016, 6:29 PM

            So i will delet the node_modules folder in the magicmirror directory. then i go to cd ~/MagicMirrorand will do a npm install, right? should i do a npm update or “npm rebuild” before the install?

            edit: yes, i used the automatic installer

            J 1 Reply Last reply Oct 1, 2016, 6:31 PM Reply Quote 0
            • J Offline
              Jopyth Moderator @cruunnerr
              last edited by Oct 1, 2016, 6:31 PM

              @cruunnerr Yes, that sounds about right, you can try the rebuild thing first.

              Helpful sticky: How to troubleshoot

              1 Reply Last reply Reply Quote 0
              • C Offline
                cruunnerr
                last edited by Oct 1, 2016, 6:32 PM

                ok, will try tomorrow and report ;)
                thank you very very much for spending your time

                1 Reply Last reply Reply Quote 1
                • C Offline
                  cruunnerr
                  last edited by cruunnerr Oct 2, 2016, 8:48 AM Oct 2, 2016, 8:23 AM

                  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.

                  0_1475396628481_Fehler Raspi.png

                  edit: why others dont have this problem? I used the “complete setup tutorial”. or is it cause i used the automatic installer?

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    cruunnerr
                    last edited by Oct 5, 2016, 3:46 PM

                    no more ideas?

                    1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User
                      last edited by Dec 14, 2016, 5:00 PM

                      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

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 2 / 2
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy