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

@kegesch

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:

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