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.

    Problem with instalation on raspbian

    Scheduled Pinned Locked Moved Troubleshooting
    9 Posts 2 Posters 1.4k Views 2 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.
    • E Offline
      Ety60
      last edited by

      Hello everyone,
      I used the Magic Mirror website installation guide, but I got the error that my node.js version is not supported by Magic Mirror (it was the node.js version that was on the website: version 10. I don’t now). So I installed the latest version of node.js (version 12.18.2) with this command:

      curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
      

      But then I got this error:

      > magicmirror@2.12.0 start /home/pi/MagicMirror
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      sh: 1: ./node_modules/.bin/electron: not found
      npm ERR! code ELIFECYCLE
      npm ERR! syscall spawn
      npm ERR! file sh
      npm ERR! errno ENOENT
      npm ERR! magicmirror@2.12.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
      npm ERR! spawn ENOENT
      npm ERR! 
      npm ERR! Failed at the magicmirror@2.12.0 start script.
      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/pi/.npm/_logs/2020-07-06T17_40_44_705Z-debug.log
      

      Can anyone help me?

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @Ety60
        last edited by

        @Ety60 use the install script command from here

        https://github.com/sdetweil/MagicMirror_scripts

        if this is a pi0, electron is no longer available, but I set the system up in split mode the run chromium instead

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 1
        • E Offline
          Ety60
          last edited by

          I did it and it was successful. But what do I do now to restart the MagicMirror software? It still doesn’t work with this:

          cd MagicMirror
          
          npm run start
          

          I’m using an rpi 4 for this project.

          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @Ety60
            last edited by sdetweil

            @Ety60 when u did the install, did u say yes to pm2?

            if so, then pm2 start 0 should work, also npm start should work

            if you did use pm2, then it will start at boot, so npm start would try to start a second copy.

            pm2 status will show u what is running

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • E Offline
              Ety60
              last edited by

              The program did not ask me to install pm2.

              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @Ety60
                last edited by

                @Ety60 then u did not use my script.
                does ~/install.log exist?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • E Offline
                  Ety60
                  last edited by

                  yes ~·install.log exist. So I think I used your script.

                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @Ety60
                    last edited by sdetweil

                    @Ety60 and it should have prompted you, “Do you want to use pm2 to autostart your MagicMirror”

                    if u said n, and want to fix it, you can use the fixuppm2.sh script

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • E Offline
                      Ety60
                      last edited by

                      @sdetweil I tried to run the entire script again and this time asked me for pm2. It worked and MagicMirror now works. Thank you very much for your help!

                      1 Reply Last reply Reply Quote 0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • 1 / 1
                      • 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