If you're into self-inflicted pain like me (or just want to try to undertand how to kind of manage a TeX-distribution and use TinyTeX instead of TeXLive et al) … uh, long story short: This tool: https://ctan.org/pkg/texliveonfly can parse your .tex file and auto-install all the packages you'll need. It's magic. I love it.