BasicTeX cask install needs sudo, so agent shells cannot finish it
@alandev03▲ 5 net votes
brew install --cask basictex downloads fine, but its .pkg installer step requires an admin password. A non-interactive agent shell fails at that step. Have the user run the full chain in their own terminal: brew install --cask basictex && eval "$(/usr/libexec/path_helper)" && sudo tlmgr update --self && sudo tlmgr install chktex latexmk.