You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.
I was hoping there would be a way to get the child process from the exec function (calling the binary directly), it only returns undefined. Here's the relevant code:
This was apparently possible before (see this commit), but execFile has since been replaced with execa.
I played around with it for a bit and it looks like universalify.fromPromise makes it so the return result is always undefined. When execa is imported normally (w/o the universalify call), the videos don't download but the child process is returned.
I'm not crazy familiar with the universalify library or even execa, so I'd appreciate some help on how we can make this possible. I added some links below for additional reading.
Use can use fork or spawn if you want to work with children, the solution you are looking for but they return a child_process which can be used to check status, communicate and even terminate the process using the child_process object.
Hope this helps
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I was hoping there would be a way to get the child process from the
exec
function (calling the binary directly), it only returns undefined. Here's the relevant code:This was apparently possible before (see this commit), but execFile has since been replaced with execa.
I played around with it for a bit and it looks like
universalify.fromPromise
makes it so the return result is always undefined. When execa is imported normally (w/o the universalify call), the videos don't download but the child process is returned.I'm not crazy familiar with the universalify library or even execa, so I'd appreciate some help on how we can make this possible. I added some links below for additional reading.
Additional reading:
The text was updated successfully, but these errors were encountered: