Read the statement by Michael Teeuw here.
Update Magic Mirror error
-
@MisterT said in Update Magic Mirror error:
Package-lock.json
vendor / package-lock.jsonyou can erase these two files, then will be created
config/config.js.sample
git thinks this file was changed, and it should not have been
so, restore that file from the local repo
cd ~/MagicMirror git checkout -- config/config.js.sample
then try again,
I have been working on a new script to do upgrades, to help avoid these problems…
i’d be interested in your experience if u could try it…see
https://forum.magicmirror.builders/topic/10859/new-update-upgrade-script-ready-for-testing -
@MisterT You could also just do a
git reset --hard
and thengit pull $$ npm install
. I have had this issue every time I had to update my mirror. -
hi,
sdetweil: i try your solution:cd ~/MagicMirror
git checkout – config/config.js.samplebut i have the same problem. git pull said me the same thing. Have you a other idea?
mumblebaj: if y use this command line, all my modules and config will be deleted? if i copy my modules folder and config folder and paste them in the new version of Magic mirror, everything will work fine?
Thanks
-
@MisterT You will not lose your modules and configs.
-
@MisterT notice my post had 2 - in front of filename. Yours appears only to have one
-
thanks @mumblebaj you’re awesome !!!. Git reset --hard work fine
Update MM2.8 is ok. -
@MisterT Great it worked for you. Please mark the post as Resolved if you are happy that it worked.