Open chadmortimer opened 3 years ago
i have this one pretty the same.
node:internal/fs/utils:348 throw err; ^
Error: ENXIO: no such device or address, open '/dev/tty'
at Object.openSync (node:fs:595:3)
at prompt (/Users/edihan/repos/Hangman_AEK/node_modules/prompt-sync/index.js:67:10)
at Object.
Node.js v18.10.0
I just ran into the same issue as well — Was anyone able to resolve this?
I'm also having the same problem. Trying to create I/O tests on Replit and I'm getting the following error message:
Error: ENXIO: no such device or address, open '/dev/tty'
at Object.openSync (node:fs:585:3)
at prompt (/home/runner/Conditionals-Q2/node_modules/prompt-sync/index.js:67:10)
at Object.
Putting down a marker here if anyone encounters this on non-interactive environments, which in my case i was accidentally running a build script that prompted for user input in my aws CodeBuild project. This likely arises when using the library in such environment and it dies because there is nothing to prompt.
Update your script to ignore the prompt call in a non-interactive environment.
Using default/blank config
When calling prompt() -> Uncaught Exception ENXIO: no such device or address, open '/dev/tty' - Mac
macOS Big Sur (11.4) node v14.15.4