Skip to content

npm script hangs on Windows with "Terminate batch job (Y/N)?" prompt #115

@DeltaWhy

Description

@DeltaWhy

My Procfile contains a line webpack: cd gui && npm run watch, which fails to exit cleanly on interrupt (CTRL-C). Instead I get a prompt Terminate batch job (Y/N)? which I can't answer.

When executing npm run watch from a cmd promt, I can suppress this prompt by redirecting input from NUL (Windows equivalent of /dev/null), however doing the same in my Procfile doesn't solve the issue - there's no prompt printed but it still hangs. Using yarn instead of npm does exit cleanly, with or without the redirect.

Any idea what's going on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions