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

Fix error 'spawn EINVAL' when executing a dev command #57

Open
kegesch opened this issue Jun 19, 2024 · 0 comments
Open

Fix error 'spawn EINVAL' when executing a dev command #57

kegesch opened this issue Jun 19, 2024 · 0 comments

Comments

@kegesch
Copy link

kegesch commented Jun 19, 2024

With a recent security patch for Node.js for the versions 18.X, 20.X and 21.X, Node now prevents from executing .bat / .cmd scripts with the spawn function on Windows.

To fix this, the command should be sanitized and tha parameter { shell: true } should be passed to the spawn function.

Links:

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

No branches or pull requests

1 participant