Tag Archives: VScode Recipe ternimated with fatal error: spwan latexmk ENOENT

VScode Recipe ternimated with fatal error: spwan latexmk ENOENT

Problem background: in MacOS system, in vscode, latex reports an error in build, as shown in:

  Recipe ternimated with fatal error: spwan pdflatex/latexmk ENOENT

 

The reason for this error: the local tex is not written to the path, or the texlive path in the path is wrong (my reason is to update texlive and change the installation directory name)

 

terms of settlement:

    Find the installation path of texlive. For example, my path is/usr/local/texlive/2021/bin/Universal Darwin

    Write export in zshrc or bashrc   PATH=dir:$PATH