Read the statement by Michael Teeuw here.
Updating MM fails
-
Here is what is happening:
git pull && npm run install-mm hint: Pulling without specifying how to reconcile divergent branches is hint: discouraged. You can squelch this message by running one of the following hint: commands sometime before your next pull: hint: hint: git config pull.rebase false # merge (the default strategy) hint: git config pull.rebase true # rebase hint: git config pull.ff only # fast-forward only hint: hint: You can replace "git config" with "git config --global" to set a default hint: preference for all repositories. You can also pass --rebase, --no-rebase, hint: or --ff-only on the command line to override the configured default per hint: invocation. error: Could not read a2d7cdcfb425c2a51715bbaf663c2feb267a9798 error: Could not read b716ec33d99924733e8603ca5a657c83bf8cca26 remote: Enumerating objects: 1230, done. remote: Counting objects: 100% (1166/1166), done. remote: Compressing objects: 100% (495/495), done. remote: Total 856 (delta 589), reused 543 (delta 318), pack-reused 0 Receiving objects: 100% (856/856), 504.39 KiB | 2.61 MiB/s, done. Resolving deltas: 100% (589/589), completed with 156 local objects. error: Could not read b716ec33d99924733e8603ca5a657c83bf8cca26 fatal: revision walk setup failed error: https://github.com/MichMich/MagicMirror.git did not send all necessary objects
-
@droidus did u perchance checkout the develop branch before to fix a problem.
best way to get out of this,
rename the MagicMirror folder to MagicMirror.2
install MagicMirror using my scriptsee https://github.com/sdetweil/MagicMirror_scripts
the in the new magic mirror temporarily rename the module defaults folder to something else, so this copy command does write over anything
cd ~/MagicMirror/modules
mv defaults temp
copy the old mm module folder content here in the mm’s module folder, including the old defaults folder
cp -r -p ~/MagicMirror.2/modules/ .
(dot at the end means here)delete the defaults folder that was copied
rm -rf defaults
restore the new defaults folder
mv temp defaultsthen copy your old config.js and custom.css from the old MagicMirror.2 folder over to the new one