-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
child_process.execSync does not get input after using inquirer #792
Comments
This looks like a Node.js bug; can you try reporting it over there? |
As I did not read the code to determine what went wrong, but only tried what by #767 seemed logical; I don't see exactly what I should write them /o\ |
FYI, I'm seeing something similar on macOS 10.15.4. I'm glad you posted this here so I don't think I'm going insane. In my case, trying to get the result of an For example, Does not return
|
We use inquirer for a while now, but lately I got reports of an issue when we use inquirer in combination with
childProcess.execSync(command, {stdio: 'inherit'});
The problem occurs if the child process is called after inquirer prompted something in the console.
(Currently I only found an issue when "type:list" was used)
As an example:
The error occurs with other processes like this as well.
childProcess.execSync("aws configure", {"stdio": "inherit"});
Strangely enough the second input (aws configure expects multiple inputs) works as expected...
After looking around a bit I found: #767 which lead me to the following workaround. If I put this code, right in front of my childProcess.execSync... everything works again as expected.
Node Version v11.11.0
Windows 10 Pro
The text was updated successfully, but these errors were encountered: