Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got errors on windows and centos about dev/tty #1

Open
adriengibrat opened this issue Jan 21, 2015 · 6 comments
Open

Got errors on windows and centos about dev/tty #1

adriengibrat opened this issue Jan 21, 2015 · 6 comments

Comments

@adriengibrat
Copy link

I got this error using Inquirer.js since this morning

On centOS

Error: ENXIO, no such device or address '/dev/tty'

On windows

Error: ENOENT, no such file or directory 'c:\dev\tty'

Sorry, I don't have time for further investigation, but seems related to your project.

adriengibrat referenced this issue in SBoudrias/Inquirer.js Jan 21, 2015
@rmg
Copy link

rmg commented Jan 22, 2015

Looks like tty assumes there is a tty to attach to, but that's not always the case.

Sadly that means this module's promise of "Guaranteed read and write streams to the terminal" comes with the caveat that there must actually be a terminal of some kind :-/

@jonschlinkert
Copy link

jonschlinkert commented Mar 6, 2017

we're getting this error in some of the enquirer prompt libs as well. but for OSX

edit: sorry to be clear the error was for OSX on travis, but I don't get the error locally on OSX for some reason.

@nagapavan
Copy link

Getting this error on OSX while using inside VSCode. From CLI, it works without a hitch.

@matthewjumpsoffbuildings
Copy link

matthewjumpsoffbuildings commented Dec 6, 2018

i tried using this module to fix an issue i am having with visionmedia/node-progress#179 - the progress bar is not rendering when using git-bash.exe on windows, since it is not TTY. The /bin/bash.exe that is in the Git install folder is TTY and the progress bar works fine, as does regular old cmd.exe.

i attempted to use this library for its promise of guaranteed TTY output streams, but when i run it in git-bash.exe i get the node error

Error: ENOENT, no such file or directory '/dev/tty'

edit:
weird thing is, in git-bash, if i just type echo "hello" > /dev/tty it actually works - eg it logs out "hello" into the current console, so why is the fs attempt to open a stream to this failing?

@0x57e11a
Copy link

Damn this is old, still no fix for using Windows?

@wing1003
Copy link

wing1003 commented Feb 2, 2021

I got the same error on OSX.

Error: ENXIO: no such device or address, open '/dev/tty'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants