Skip to content

Doesn't work with nodemon #50

Description

@wyckster

Steps to reproduce

app.js

console.log(require('prompt-sync')()('Enter anything: '));

To run:

nodemon app.js

This app doesn't exit.

Expected output:

Enter anything: a
a
[nodemon] clean exit - waiting for changes before restart

Actual output:

Enter anything: a
Enter anything: a
                   b
Enter anything: a
b
                      c
Enter anything: a
b
c

But running directly in node works correctly:

node app.js
  • Winver: Window 10 20H2 OS Build 19042.1237
  • nodemon --version 2.0.7
  • node --version v14.15.4

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