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.

    MM failed after updating

    Scheduled Pinned Locked Moved Solved Troubleshooting
    16 Posts 3 Posters 2.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.
    • S Offline
      sdetweil @chrisfr1976
      last edited by sdetweil

      @chrisfr1976 can you post the few lines of package.json around line 87

      did you use my upgrade script?
      if so can u email me the file
      ~/MagicMirror/installers/upgrade.log

      using the same userid as on this post at gmail

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        chrisfr1976 @sdetweil
        last edited by

        @sdetweil

        In the beginning I’ve used the described update method here:

        https://docs.magicmirror.builders/getting-started/upgrade-guide.html
        

        So only git pull && npm run install-mm was used. But I’ve used the back-up script you’ve provided. Then I found also your update script. I’ve used it then, too. But same error. I’ll send the update.log via email :-)

        Here the lines around line 87. I’ve marked it to show the position only:

        
          // Loads a package.json at given path and JSON parses
          static async load (path, opts = {}) {
            const p = new PackageJson()
            // Avoid try/catch if we aren't going to create
            if (!opts.create) {
              return p.load(path)
            }
        *87*
            try {
              return await p.load(path)
            } catch (err) {
              if (!err.message.startsWith('Could not read package.json')) {
                throw err
              }
              return await p.create(path)
            }
          }
        
        
        

        Chris.

        Regards, Chris.

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

          @chrisfr1976 hm…

          package.json looks like this

          Screenshot_20240403_072345_Chrome.jpg

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            chrisfr1976 @sdetweil
            last edited by

            @sdetweil I was able to fix it. git reset --hard followed by npm run install-mm fixed the issue. I don’t know why but now everything is fine again. I’ll do a SD-card back-up now :-)

            Regards, Chris.

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

              @chrisfr1976 weird, thanks for the update

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              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