Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i update the module? #64

Open
cacy82 opened this issue Apr 21, 2024 · 3 comments
Open

How can i update the module? #64

cacy82 opened this issue Apr 21, 2024 · 3 comments

Comments

@cacy82
Copy link

cacy82 commented Apr 21, 2024

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
Copy link
Owner

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
Copy link
Author

cacy82 commented Apr 22, 2024

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
Copy link
Owner

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants