randomBrainstormer / MMM-GoogleCalendar

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

How can i update the module? #64

Open cacy82 opened 2 months ago

cacy82 commented 2 months ago

Hi,

I hadn't turned on the MM for some time because the glass broke and I had to replace it. Today I turned it on and the update notification tells me that the module needs to be updated.

I tried using several commands: npm install npm update npm upgrade npm rebuild

every time it says the update was done, but when I restart the message comes back, saying I'm 12 commits behind.

How can I update it and make the warning disappear?

randomBrainstormer commented 2 months ago

Hi @cacy82,

It looks like the issue might be related to not pulling the latest changes from the Git repository. You've run npm commands that deal with node package dependencies, but haven't updated the actual codebase. Could you try the following steps?

  1. Make sure you're in the module's directory, if not, change directory to where the module is installed, e.g., cd modules/MMM-GoogleCalendar.
  2. Run git pull while in the module directory to fetch and merge the latest commits from the remote repository.
  3. To make sure there are no conflicts or issues with old package versions, remove the existing node_modules folder by running rm -rf node_modules.
  4. After that, run npm install to install the necessary packages from scratch.
  5. Finally, re-run the authorization steps with node authorize according to the install guide.

Please follow these steps and let us know if your issue gets resolved or if you encounter any new errors.

Best Regards, Ivan

cacy82 commented 2 months ago

Hi,

I followed all the steps indicated, but nothing has changed, it keeps giving me the notification that the update needs to be done

randomBrainstormer commented 2 months ago

Hello,

The current release should be 1.1.2. Could you please confirm which version you have by checking the package.json within the MMM-GoogleCalendar folder? If it's not 1.1.2, it's likely that one of the update steps didn't complete successfully, possibly the git pull command.

If your version is indeed lower than 1.1.2, you may want to ensure that your MagicMirror software is up to date. For an existing clone, navigate to the main MagicMirror directory and run git pull to fetch the latest updates.

If updating both MagicMirror and the MMM-GoogleCalendar module doesn't resolve the issue, consider removing the module entirely and reinstalling it from the beginning.

I hope this helps!

Best regards,