Read the statement by Michael Teeuw here.
MM failed after updating
-
@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.logusing the same userid as on this post at gmail
-
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.
-
@chrisfr1976 hm…
package.json looks like this
-
@sdetweil I was able to fix it.
git reset --hard
followed bynpm 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 :-) -
@chrisfr1976 weird, thanks for the update