Skip to content

fix: windows node spawn einval error #77

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

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

rob4226
Copy link
Contributor

@rob4226 rob4226 commented Aug 19, 2024

All commands fail to run on Windows with newer Node versions with Error: spawn EINVAL due to nodejs/node@69ffc6d. This commit adds shell: true to all the spawn calls when the platform is Windows.

This is similar to NativeScript/NativeScript#10532

@edusperoni
Copy link
Collaborator

Hello!

Thanks for the contribution! But I believe this change by itself is insufficient and breaks a few projects (see NativeScript/nativescript-cli#5808). Can you add the same logic to add quotes on windows on this PR?

Thank you!

@rob4226
Copy link
Contributor Author

rob4226 commented Aug 21, 2024

Hello, can you please take a look now? Thanks.

@edusperoni edusperoni merged commit a789738 into NativeScript:main Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants