[Tex/LaTex] Error “latexmk: The script engine could not be found” in VS Code using MikTeX 2.9

idelatexmkmiktex2.9

LaTeX-Workshop on VS Code keeps printing this error:

latexmk: The script engine could not be found.
latexmk: Data: scriptEngine="perl.exe", scriptName="latexmk"

I installed 'latexmk' via MikTeX 2.9, yet it still gives me this message. What do I have to do?

Best Answer

Quick summary:

  1. Install Perl from The Perl Programming Language. ActiveState Perl is recommended for beginners. Make sure to add the Perl local directory to your system Path.
  2. Install the latexmk package with your TeX distribution.
Related Question