MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED Cannot restart my mirror for months

    Troubleshooting
    3
    11
    266
    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.
    • R
      richardh151 last edited by richardh151

      Please help, I have been trying to get my mirror fixed after my last upgrade. I have searched this site and others areas but cannot find the solution. Can anyone help make my mirror come back to life?

      This is the error messages are get when trying to start my mirror. Sorry in advance if this is easy for someone to fix.

      pi@raspberrypi:~/Documents/MagicMirrorJan2021 $ npm start
      npm ERR! Linux 5.10.63-v7+
      npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “start”
      npm ERR! node v6.11.0
      npm ERR! npm v3.10.10
      npm ERR! file /home/pi/Documents/MagicMirrorJan2021/package.json
      npm ERR! code EJSONPARSE

      npm ERR! Failed to parse json
      npm ERR! Unexpected token ‘/’ at 7:41
      npm ERR! “start”: “DISPLAY=”${DISPLAY:=:0}“”./node_modules/.bin/electron js/electron
      npm ERR! ^
      npm ERR! File: /home/pi/Documents/MagicMirrorJan2021/package.json
      npm ERR! Failed to parse package.json data.
      npm ERR! package.json must be actual JSON, not just JavaScript.
      npm ERR!
      npm ERR! This is not a bug in npm.
      npm ERR! Tell the package author to fix their package.json file. JSON.parse

      K S 2 Replies Last reply Reply Quote 0
      • R
        richardh151 @sdetweil last edited by

        @sdetweil I managed to update it finally. Now I just have a black screen to fix to show my modules, so it feels close 😁

        S 1 Reply Last reply Reply Quote 0
        • K
          Kelsoh @richardh151 last edited by

          @richardh151 said in Cannot restart my mirror for months:

          Unexpected token ‘/’ at 7:41

          Check your package.json file. Theres something wrong, probably at line 7.

          1 Reply Last reply Reply Quote 0
          • S
            sdetweil @richardh151 last edited by

            @richardh151

            npm ERR! node v6.11.0
            npm ERR! npm v3.10.10

            your node and npm are way down level

            we are currently requiring node 14 and npm 6

            if you use my MagicMirror upgrade script it will also upgrade node and npm

            see
            https://github.com/sdetweil/MagicMirror_scripts

            BUT the upgrade script only works if mm is installed in ~/MagicMirror

            a quick workaround would be to create a linked folder

            cd ~
            ln -s realpath MagicMirror
            

            where realpath for you is Documents/MagicMirrorJan2021

            u can delete the linked folder after the update

            note update is a 2 part process.
            1st is a test run to see if there will be issues
            2nd does the update,big u use the apply parm

            but it will upgrade node/npm on the 1st pass

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • R
              richardh151 last edited by

              I have tried your suggestions but it seems I’m struggling to update npm and node js versions. I continue to obtain an error message related to electron-chromedriver @13.0.0 install script.

              Does anyone have any suggestions, please ?

              S 2 Replies Last reply Reply Quote 0
              • S
                sdetweil @richardh151 last edited by

                @richardh151

                do this

                sudo npm install n -g
                n install 14
                

                Sam

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • S
                  sdetweil @richardh151 last edited by

                  @richardh151 what pi is this?

                  Sam

                  Create a working config
                  How to add modules

                  R 3 Replies Last reply Reply Quote 0
                  • R
                    richardh151 last edited by

                    @richardh151 Pi 3 Model B+

                    1 Reply Last reply Reply Quote 0
                    • R
                      richardh151 @sdetweil last edited by

                      @sdetweil does not work as my permission was denied ( code EACCES)

                      1 Reply Last reply Reply Quote 0
                      • R
                        richardh151 @sdetweil last edited by

                        @sdetweil I managed to update it finally. Now I just have a black screen to fix to show my modules, so it feels close 😁

                        S 1 Reply Last reply Reply Quote 0
                        • R
                          richardh151 @sdetweil last edited by

                          @sdetweil now Iam back and fully operational again. A huge thanks to you 👍😊

                          1 Reply Last reply Reply Quote 0
                          • 1
                          • 2
                          • 1 / 2
                          • First post
                            Last post
                          Enjoying MagicMirror? Please consider a donation!
                          MagicMirror created by Michael Teeuw.
                          Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                          This forum is using NodeBB as its core | Contributors
                          Contact | Privacy Policy