Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.
This repository was archived by the owner on May 8, 2025. It is now read-only.

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

Description

@kegesch

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:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions