Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows error when running #13

Open
maBarabas opened this issue Feb 1, 2022 · 3 comments
Open

Windows error when running #13

maBarabas opened this issue Feb 1, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@maBarabas
Copy link

When running the script from Windows I get the following error:

C:\>%appdata%\npm\lv_img_conv
The system cannot find the path specified.

I've installed from the npm registry. How can I use this script in Windows cmd.exe?

@embeddedt
Copy link
Member

I hadn't tested the script on Windows. I expect it to work properly in Cygwin/MSYS2/Git Bash, but it indeed has problems when running in cmd.exe.

@embeddedt embeddedt added the bug Something isn't working label Feb 2, 2022
@embeddedt
Copy link
Member

@gokhannsahin just contributed instructions to get this working in Windows if you clone it using Git.

@billybednar
Copy link

The error is because of this line:

#!/usr/bin/perl -e$_=$ARGV[0];exec("/usr/bin/env\x20npx\x20ts-node\x20-s\x20@ARGV")

Because of that the generated command file node_modules\.bin\lv_font_conv.cmd expects to find Perl in \usr\bin on the current drive. You can test by copying a random program there (installing Perl there will likely not fix it since Perl will then try to run /usr/bin/env):

>mkdir \usr\bin
>copy %WINDIR%\System32\calc.exe \usr\bin\perl.exe
        1 file(s) copied.
>npm exec --no -- lv_img_conv
(calculator opens)
>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants