-
Notifications
You must be signed in to change notification settings - Fork 151
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
stdout is not a tty
on git bash on Windows
#305
Comments
Have you tracked down where that error come from? I don't think it comes from pino-pretty. |
you are right.
works fine. so, probable it is a problem of |
I don't know to be honest. Maybe something in the http-fastify-complete example? |
I don't think so
|
Does |
yes
|
Unfortunately I do not have a windows machine to debug this :(. If it's on pino or pino-pretty, could you send a PR? |
seems to be a worse scenario
Any suggestion? Just where / how to proceed here: I really don't know if it is a bad stuff on my shell, nodejs problems or others.... |
I do not believe Bash as delivered by git for Windows is a true posix implementation. I think it is based on Cygwin. You should try LFS for Windows. |
I don't understand, sorry. Do you mean LargeFileSystem for Windows? Do you have some links? |
This https://docs.microsoft.com/en-us/windows/wsl/about Windows is a video game OS for me 🤷♂️ |
Really thanks for your answers. Can I send a PR for updating the documentation? |
Yes. |
using node.exe -e 'console.log(666)' | pino-pretty works just fine |
According to the answers in the ☝️ SO thread:
You can also see it in the actual aliases.sh file Also git-bash has some issues link more or less to that
I also found that we can run either
I'm considering making a small PR on |
I spent almost whole day on this. (windows 10, trying to use psql would return stdin is not tty) As it was suggested on this answer: Ironically is in the same page along with the more popular answer about writing node.exe instead of node (I give that a try too. It wouldn't throw the error but neither would it execute anything). |
Work-around: use
|
Hi,
I tried to run the below command in git bash under Windows 11 and an error is shown as described below.
In fact the git bash is not a tty as desccribed below.
Is there any change to use pino-pretty in git bash?
Thanks
The text was updated successfully, but these errors were encountered: