Coder Social home page Coder Social logo

Comments (4)

dangtony98 avatar dangtony98 commented on August 13, 2024 1

I just ran into the same issue as well — Was anyone able to resolve this?

from prompt-sync.

Edihan-1990 avatar Edihan-1990 commented on August 13, 2024

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.

PianoMan7 avatar PianoMan7 commented on August 13, 2024

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.

throttlehead-dev avatar throttlehead-dev commented on August 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.