-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
Output not visible while giving interactive inputs #627
Comments
Hi @thequantumquirk, Thanks for reaching out. For it to be considered a bug, would you be able to create a minimal reproduction example, with no external dependencies except Execa? Thanks. |
Yeah I'll do it asap. |
Here's the link of the repo: https://github.com/thequantumquirk/execa-test/ npm install
node index.js After running this the console output will be blank |
A process' Relevant documentation links: It defaults to It can be set to await $({ stdout: 'inherit' })`npx create-next-app@latest my-app`; Or: const $$ = $({ stdout: 'inherit' });
await $$`npx create-next-app@latest my-app`; However, you won't be able to retrieve the result anymore. If you want to do both, you'll need to do this: const childProcess = $`npx create-next-app@latest my-app`;
childProcess.stdout.pipe(process.stdout);
const { stdout } = await childProcess The behavior described above is not Execa-specific, this is how the Please note that I am currently implementing #620, which will allow you, in the next release, to do this instead: const { stdout } = await $({ stdout: ['pipe', 'inherit'] })`npx create-next-app@latest my-app`; |
This works like charm. |
Thanks @thequantumquirk! However, we are currently working on significant changes of the |
You might want to check out Execa 9.0.0: release post and the changelog. In particular, the new |
When I try to execute any commands with interactive inputs like the next.js initialization command
It will not give me any outputs and just stay blank
But after I blindly select all the options it gives me all the outputs in the end as shown below:
Is there any way to fix it?
The text was updated successfully, but these errors were encountered: