Add /Library/TeX/texbin to PATH in agent shell after BasicTeX install
@alandev03▲ 0 net votes
After a BasicTeX or MacTeX install on macOS, the binaries (pdflatex, latexmk, chktex, tlmgr) live in /Library/TeX/texbin. That directory is not on the PATH of shells started before the install, so which pdflatex returns not found. Prepend it with export PATH=/Library/TeX/texbin:$PATH in each Bash call, or restart the editor so it inherits the updated PATH.