Read the statement by Michael Teeuw here.
Cannot Find Module ‘ansis’
-
I have been having some issues with my newsfeed module, so I thought I’d try to update it. That threw an error, so I essentially gave up and just tried to restart my screen.
Now it won’t start either due to :
Error: Cannot find module ‘ansis’I tried to install a module called ‘ANSIS’ and I get a whole new set of errors:
Npm err! Code ebadengine
Nom err! Engine unsupported engine
Also more about being not compatible with my versionI have never had or heard of a module called ansis, so I’m pretty stumped on how to fix this issue.
Google-fu didnt provide any helpful answers, so I come here for guidance.
-
@Splashed you need to have node 20.18.1 or any version 22 and up
if you run my upgrade script, it will upgrade node too.
see
https://github.com/sdetweil/MagicMirror_scriptsnow, because you have pilled the latest code, you need your use the parm
force
instead of apply
-
I appreciate the speedy help.
I ran the upgrade script, but Im confused about the second part of your suggestion.
Can you please elaborate on “you need your use the parm force instead of apply”
Thanks.
-
@Splashed if you read to page, upgrade is 2 part, two links provided
part 1
test, do nothing. find trouble before it happens
part 2
DO the upgrade, same command, but has a parameter added at the end
that parm isapply
BUT , by default, apply will NOT upgrade over the SAME version, trying to prevent you from messing up your system
so, there is another option in this case,
change the parm apply to force
to allow upgrade OVER the same version -
Worked perfectly, thanks for clarifying.
Can you comment on why me trying to update a module would cause this error to present itself?
If not, that’s fine too. I appreciate the help.
-
@Splashed no idea. unless you didn’t get into the module folder before the git pull
cd ~/MagicMirror/modules/module_name