randomBrainstormer / MMM-GoogleCalendar

Google Calendar for MagicMirror²
MIT License
64 stars 42 forks source link

[noob question] command for updating #35

Closed papinist closed 1 year ago

papinist commented 1 year ago

Hi, I know that this is a noob question, but how do I update this module?

I have some modules that requires "git pull" command and others "npm run update".

I tried "git pull" but got an error so before breaking something I thought it's better to ask :)

Thanks!

randomBrainstormer commented 1 year ago

Running git pull from the plugin should be enough. You might need to re-run the setup steps again. What kind of error did you get? most likely is git conflict with a modified file, try resetting the state before pulling:

git reset --hard
git pull
node authorize.js
papinist commented 1 year ago

Yes that's exactly the error I got:

Updating 37d2169..840903c
error: Your local changes to the following files would be overwritten by merge:
    package-lock.json
Please commit your changes or stash them before you merge.
Aborting

Using your commands did the job, thank you!