Do you have the tinytex package installed? You will need that. Once you have it installed, you can use
tinytex::is_tinytex()
tinytex::tinytex_root()
to identify if and from where TinyTeX is used. If that comes up empty, you can use tinytex::use_tinytex() to register your TinyTeX installation.