-
Notifications
You must be signed in to change notification settings - Fork 24
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
[ERROR] TTY initialization failed: uv_tty_init returned EINVAL (invalid argument). #134
Comments
Could you provide a reproduction? 🙏 |
https://github.com/long-woo/nuxt-bun-demo The code for this repository was created using |
This is probably a bun issue if you are running the dev server with bun. Would you open an issue there instead? 🙏 |
The problem has been reported to bun, oven-sh/bun#10729 |
Btw this problem extends to all package managers, such as Example $ pnpm dlx nuxi@latest init nameapp
ERROR TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor)
at new SystemError (node:internal/errors:256:5)
at new NodeError (node:internal/errors:367:7)
at new WriteStream (node:tty:93:11)
at ED.prompt (/C:/Users/dewag/AppData/Local/pnpm-cache/dlx/gfdanzckpqtfwcuomwggotfpc4/190166ee39d-fc/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/prompt.mjs:139:676)
at select (/C:/Users/dewag/AppData/Local/pnpm-cache/dlx/gfdanzckpqtfwcuomwggotfpc4/190166ee39d-fc/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/prompt.mjs:298:6)
at Module.prompt (/C:/Users/dewag/AppData/Local/pnpm-cache/dlx/gfdanzckpqtfwcuomwggotfpc4/190166ee39d-fc/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/prompt.mjs:408:18)
at /C:/Users/dewag/AppData/Local/pnpm-cache/dlx/gfdanzckpqtfwcuomwggotfpc4/190166ee39d-fc/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1317:71
at async Object.run (/C:/Users/dewag/AppData/Local/pnpm-cache/dlx/gfdanzckpqtfwcuomwggotfpc4/190166ee39d-fc/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/init.mjs:7501:29)
at async runCommand$1 (/C:/Users/dewag/AppData/Local/pnpm-cache/dlx/gfdanzckpqtfwcuomwggotfpc4/190166ee39d-fc/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1648:16)
at async runCommand$1 (/C:/Users/dewag/AppData/Local/pnpm-cache/dlx/gfdanzckpqtfwcuomwggotfpc4/190166ee39d-fc/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1639:11)
ERROR TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor)
And if look at these two problems oven-sh/bun#10729 and nuxt/cli#384, this refers to problems with the nuxt telementry |
Not sure is this is the same situation / related, but I was getting a similar error. Reason:
Works fine after settings the compatibilityDate
|
I've had same issue in my build environment (build environments usually don't have a TTY).
|
When I use
bun
to install dependencies, the following error appears:The text was updated successfully, but these errors were encountered: