Steps to reproduce
app.js
console.log(require('prompt-sync')()('Enter anything: '));
To run:
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:
- Winver: Window 10 20H2 OS Build 19042.1237
nodemon --version 2.0.7
node --version v14.15.4
Steps to reproduce
app.js
To run:
This app doesn't exit.
Expected output:
Actual output:
But running directly in node works correctly:
nodemon --version2.0.7node --versionv14.15.4