-
-
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
Problems with exiting from CLI #1050
Comments
We have the same issue on Powershell when hitting CTRL+ C:
|
@raskyer is it the same issue? Is the problem the error itself? Or that even with the error the prompt doesn't exit? |
I have both, for the error message I have fixed it with the solution from another ticket. I have added process.exit(0) in the catch and it seems to fix the issue but without it it's hanging. |
Without it, Node waits for timeouts and other scheduled async operations to complete in order to safely exit. That's not specific to Inquirer. |
I've created simple CLI using inquirer and child_process. And i have problem, when i'am closing process with CTLR+C, it seems like its still running process, because terminal not responding anything. And i have to close terminal every time and open it again, it's uncomfortable for me. What i need to do, to exit all processes with simple CTRL+C command? Searched so many solutions in google, but no result. Hope somebody can help me with it
The text was updated successfully, but these errors were encountered: