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.