That error occur because VS Code can't find perl
(on your environment path).
You can test if it's exist or not using:
perl -v
If you already install MikTeX and VSCode, I suggest you install perl via Strawberry Perl.
Step by step Strawberry Perl
installation for windows based on this source is:
- Make sure you do not have any version of Perl already installed. Check both
add/remove programs
and C:\Strawberry
.
- Download
msi
file. As for this writing, choose between strawberry-perl-5.32.1.1-64bit.msi
or strawberry-perl-5.32.1.1-32bit.msi
, same as your system (64 or 32).
- Install.
To test your installation is success and Path
already added, test using:
perl -v
Note:
I already try install perl
using ActiveState Perl
, and the error persist. This is due to ActiveState
installation will use ActiveState
environment and does not add perl
to Path
. This might help a new user.