Read the statement by Michael Teeuw here.
iCal parsing failed: Cannot find package 'ics-filter
-
Hi!
i’m new to this and am having truble whenever I try to display my calendar, I get the message “iCal parsing failed: Cannot find package 'ics-filter” . It doesn’t matter which URL i use, I get the same message. I’m not really sure what the error message means, I woud appreciate any help. I have the latest update for magicmirror2.Here is the code I’m using for the calender:
{ module: "calendar", header: "Kalender", position: "top_left", config: { calendars: [ { symbol: "calendar-alt", url: "https://calendar.google.com/calendar/ical/sv.swedish%23holiday%40group.v.calendar.google.com/public/basic.ics" } ], maximumEntries: 3, //showLocation: false } },Here is the error message I get when I run the Code:
[2026-08-30 17:55:26.613] [ERROR] [calendar] https://calendar.google.com/calendar/ical/sv.swedish%23holiday%40group.v.calendar.google.com/public/basic.ics - iCal parsing failed: Cannot find package ‘ics-filter’ imported from /home/pi-mirorr/MagicMirror/defaultmodules/calendar/calendarfetcherutils.js
[2026-08-30 17:55:26.614] [ERROR] [calendar] Calendar Error. Could not fetch calendar: https://calendar.google.com/calendar/ical/sv.swedish%23holiday%40group.v.calendar.google.com/public/basic.ics iCal parsing failed: Cannot find package ‘ics-filter’ imported from /home/pi-mirorr/MagicMirror/defaultmodules/calendar/calendarfetcherutils.js -
@Beginner_123 this sounds like you updated,
but the npm run install-mm failed…this typically happens because the version of nodejs was not updated during the upgrade
you can verify this by doin
cd ~/MagicMirror npm run install-mmplease confirm it outputs a message like (here I installed node 16)
npm ERR! code EBADENGINE npm ERR! engine Unsupported engine npm ERR! engine Not compatible with your version of node/npm: magicmirror@2.37.0 npm ERR! notsup Not compatible with your version of node/npm: magicmirror@2.37.0 npm ERR! notsup Required: {"node":">=22.21.1 <23 || >=24"} npm ERR! notsup Actual: {"npm":"8.19.4","node":"v16.20.2"}to fix the easiest way, run my upgrade script
from here
https://github.com/sdetweil/MagicMirror_scriptsand use the upgrade copy/paste with apply at the end of the command,
change the word apply to force -
@sdetweil
I did as you said and it seems to have worked but when I try to start the program I see this message
npm start run
bash: /home/pi-mirorr/.nvm/versions/node/v22.21.1/bin/npm: File or directory does not exist
I realize that there is something missing but what, what should I do now. -
@Beginner_123 can you run
hash -rand then
which nodethen
node -vfor this release its node 22.22.2
nvm changes the actual path for its installed node version,
so you may have to open another terminal windowkeyboard shortcut
ctrl-alt-t -
@sdetweil
Thank you thank you so much!!!
You are the best :) -
@Beginner_123 what was the ‘fix’ ? open a new window?
-
S sdetweil has marked this topic as solved
-
S sdetweil has marked this topic as solved
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login