Closed ReinhardChen93 closed 3 months ago
使用pnpm dlx create-umi@latest 创建项目报错 ERR_TTY_INIT_FAILED
Please provide a minimal reproduction then upload to your GitHub. 请提供 最小重现,并上传到你的 GitHub 仓库
Steps to reproduce the behavior: 1. 2.
Expected behavior 1. 2.
$ pnpm dlx create-umi@latest ┌ create-umi Create failed, TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor) SystemError [ERR_TTY_INIT_FAILED]: TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor) at new WriteStream (node:tty:98:11) at SelectPrompt.prompt (C:\Users\chenchen\AppData\Local\pnpm-cache\dlx\4i6ylavtoh73pbbuibppllaji4\1906d7c47d9-6248\node_modules.pnpm\@umijs+utils@4.3.0\node_modules\@umijs\utils\compiled\@clack\prompts\index.js:1:3778) at select (C:\Users\chenchen\AppData\Local\pnpm-cache\dlx\4i6ylavtoh73pbbuibppllaji4\1906d7c47d9-6248\node_modules.pnpm\@umijs+utils@4.3.0\node_modules\@umijs\utils\compiled\@clack\prompts\index.js:1:12857) at selectAppTemplate (C:\Users\chenchen\AppData\Local\pnpm-cache\dlx\4i6ylavtoh73pbbuibppllaji4\1906d7c47d9-6248\node_modules.pnpm\create-umi@4.3.0\node_modules\create-umi\dist\index.js:60:25) at internalTemplatePrompts (C:\Users\chenchen\AppData\Local\pnpm-cache\dlx\4i6ylavtoh73pbbuibppllaji4\1906d7c47d9-6248\node_modules.pnpm\create-umi@4.3.0\node_modules\create-umi\dist\index.js:111:11) at Object.src_default (C:\Users\chenchen\AppData\Local\pnpm-cache\dlx\4i6ylavtoh73pbbuibppllaji4\1906d7c47d9-6248\node_modules.pnpm\create-umi@4.3.0\node_modules\create-umi\dist\index.js:160:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { code: 'ERR_TTY_INIT_FAILED', info: { errno: -4083, code: 'EBADF', message: 'bad file descriptor', syscall: 'uv_tty_init' }, errno: [Getter/Setter: -4083], syscall: [Getter/Setter: 'uv_tty_init'] }
由于缺乏足够的信息,我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。
不支持在非交互式终端内创建 umi 项目。
What happens?
使用pnpm dlx create-umi@latest 创建项目报错 ERR_TTY_INIT_FAILED
Mini Showcase Repository(REQUIRED)
How To Reproduce
Steps to reproduce the behavior: 1. 2.
Expected behavior 1. 2.
$ pnpm dlx create-umi@latest ┌ create-umi Create failed, TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor) SystemError [ERR_TTY_INIT_FAILED]: TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor) at new WriteStream (node:tty:98:11) at SelectPrompt.prompt (C:\Users\chenchen\AppData\Local\pnpm-cache\dlx\4i6ylavtoh73pbbuibppllaji4\1906d7c47d9-6248\node_modules.pnpm\@umijs+utils@4.3.0\node_modules\@umijs\utils\compiled\@clack\prompts\index.js:1:3778) at select (C:\Users\chenchen\AppData\Local\pnpm-cache\dlx\4i6ylavtoh73pbbuibppllaji4\1906d7c47d9-6248\node_modules.pnpm\@umijs+utils@4.3.0\node_modules\@umijs\utils\compiled\@clack\prompts\index.js:1:12857) at selectAppTemplate (C:\Users\chenchen\AppData\Local\pnpm-cache\dlx\4i6ylavtoh73pbbuibppllaji4\1906d7c47d9-6248\node_modules.pnpm\create-umi@4.3.0\node_modules\create-umi\dist\index.js:60:25) at internalTemplatePrompts (C:\Users\chenchen\AppData\Local\pnpm-cache\dlx\4i6ylavtoh73pbbuibppllaji4\1906d7c47d9-6248\node_modules.pnpm\create-umi@4.3.0\node_modules\create-umi\dist\index.js:111:11) at Object.src_default (C:\Users\chenchen\AppData\Local\pnpm-cache\dlx\4i6ylavtoh73pbbuibppllaji4\1906d7c47d9-6248\node_modules.pnpm\create-umi@4.3.0\node_modules\create-umi\dist\index.js:160:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { code: 'ERR_TTY_INIT_FAILED', info: { errno: -4083, code: 'EBADF', message: 'bad file descriptor', syscall: 'uv_tty_init' }, errno: [Getter/Setter: -4083], syscall: [Getter/Setter: 'uv_tty_init'] }
Context