• 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.

Cannot restart my mirror for months

Scheduled Pinned Locked Moved Solved Troubleshooting
11 Posts 3 Posters 1.7k Views 3 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.
  • R Offline
    richardh151
    last edited by richardh151 Dec 4, 2021, 8:16 AM Dec 4, 2021, 8:16 AM

    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 Dec 4, 2021, 10:42 AM Reply Quote 0
    • R Offline
      richardh151 @sdetweil
      last edited by Dec 5, 2021, 8:59 PM

      @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 Dec 5, 2021, 11:02 PM Reply Quote 0
      • K Offline
        Kelsoh @richardh151
        last edited by Dec 4, 2021, 10:42 AM

        @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 Offline
          sdetweil @richardh151
          last edited by Dec 4, 2021, 1:30 PM

          @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

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • R Offline
            richardh151
            last edited by Dec 5, 2021, 3:35 PM

            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 Dec 5, 2021, 6:33 PM Reply Quote 0
            • S Offline
              sdetweil @richardh151
              last edited by Dec 5, 2021, 6:33 PM

              @richardh151

              do this

              sudo npm install n -g
              n install 14
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @richardh151
                last edited by Dec 5, 2021, 6:34 PM

                @richardh151 what pi is this?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                R 3 Replies Last reply Dec 5, 2021, 8:28 PM Reply Quote 0
                • R Offline
                  richardh151
                  last edited by Dec 5, 2021, 8:26 PM

                  @richardh151 Pi 3 Model B+

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    richardh151 @sdetweil
                    last edited by Dec 5, 2021, 8:28 PM

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

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      richardh151 @sdetweil
                      last edited by Dec 5, 2021, 8:59 PM

                      @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 Dec 5, 2021, 11:02 PM Reply Quote 0
                      • R Offline
                        richardh151 @sdetweil
                        last edited by Dec 5, 2021, 9:24 PM

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

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        1 / 2
                        • First post
                          1/11
                          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