Comments (4)
I just ran into the same issue as well — Was anyone able to resolve this?
from prompt-sync.
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. (/Users/edihan/repos/Hangman_AEK/Hangman_AEK.js:35:24)
at Module._compile (node:internal/modules/cjs/loader:1149:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1203:10)
at Module.load (node:internal/modules/cjs/loader:1027:32)
at Module._load (node:internal/modules/cjs/loader:868:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
errno: -6,
syscall: 'open',
code: 'ENXIO',
path: '/dev/tty'
}
Node.js v18.10.0
from prompt-sync.
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. (/home/runner/Conditionals-Q2/index.js:5:13)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
from prompt-sync.
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.
from prompt-sync.
Related Issues (20)
- ANSI escape codes breaks cursor
- UTF8 emoji space issue HOT 1
- Sample code fails if used within a class method, presumably because 'prompt' is a reserved word HOT 2
- Will not work in Bash command when information piped in HOT 1
- Wrong cursor position with history and colored label
- How do I get it to run on codesandbox.io?
- Unable to input non-English letters on Windows HOT 6
- Every time I type a letter, the line repeats itself HOT 11
- Index.js is break
- Doesn't work with nodemon HOT 5
- prompt-sync takes a very long time(won't even accept input) to accept inputs HOT 1
- Pressing Tab multiple times does not cycle through the values of the autocomplete function HOT 2
- Add a validation option?
- Copy Paste not working properly
- Marking Repo as Deprecated and Offering Alternatives HOT 3
- Autocomplete error HOT 3
- Submit on first character HOT 1
- Prompt repeating on Input HOT 4
- Cannot access key listeners while prompt is in use
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prompt-sync.