Input
brew install --cask mactex
Output
You must restart your terminal window for the installation of MacTex CLI tools to take effect.
Alternatively, Bash and Zsh users can run the command:
eval "$(/usr/libexec/path_helper)"
==> Downloading https://mirror.ctan.org/systems/mac/mactex/mactex-20220321.pkg
Already downloaded: /Users/iamthelabhras/Library/Caches/Homebrew/downloads/b4a8f6bffbfd2af819208c808eda31fdbb959295674dd63f1d0797d4f94d37d3--mactex-20220321.pkg
All formula dependencies satisfied.
==> Installing Cask mactex
==> Running installer for mactex; your password may be necessary.
Package installers may write to any location; options such as --appdir are ignored.
Password:
installer: Package name is MacTeX
installer: choices changes file '/private/tmp/choices20220904-3519-19ami42.xml' applied
installer: Installing at base path /
installer: The install failed..
==> Purging files for version 2022.0321 of Cask mactex
Error: Failure while executing; /usr/bin/sudo -E -- /usr/bin/env LOGNAME=iamthelabhras USER=iamthelabhras USERNAME=iamthelabhras /usr/sbin/installer -pkg /usr/local/Caskroom/mactex/2022.0321/mactex-20220321.pkg -target / -applyChoiceChangesXML /private/tmp/choices20220904-3519-19ami42.xml exited with 1. Here's the output:
installer: Package name is MacTeX
installer: choices changes file '/private/tmp/choices20220904-3519-19ami42.xml' applied
installer: Installing at base path /
installer: The install failed..
Well and truly out of my depth here. I'm installing MacTeX as a prelude to learning note-taking in LaTeX and, though I'm comfortable on the command line, these errors read like Greek to me.
Any help the community could offer would be greatly appreciated!
Go raibh míle maith agaibh!

MacTeX.pkgas we speak and will share an update when I've had a chance to re-attempt installation. – iamthelabhras Sep 04 '22 at 19:53