That error occur because VS Code can't find
perl (on your environment path).
You can test if it's exist or not using:
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
msi file. As for this writing, choose between
strawberry-perl-126.96.36.199-32bit.msi, same as your system (64 or 32).
To test your installation is success and
Path already added, test using:
I already try install
ActiveState Perl, and the error persist. This is due to
ActiveState installation will use
ActiveState environment and does not add
Path. This might help a new user.