-
Notifications
You must be signed in to change notification settings - Fork 37
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
Windows support #8
Comments
I don't use Windows so this is not something I can test. If you want to submit a PR to support Windows then feel free, but this is not something I can work on. It looks like superspawn just adds some extra logic to resolve the executable on a Windows machine: |
Labeling as an enhancement since this module is just using |
On second thought, I don't think logic to resolve a Windows executable belongs in this module. It is probably better for the caller to pre-resolve the executable before using this module. There's a lot of magic happening in superspawn and there is some synchronous blocking code when searching for executables. |
could this library use something like this: https://github.com/IndigoUnited/node-cross-spawn so that it works on windows? |
This module looks like the nicest promise implementation of spawn available, but the lack of Windows support is a deal breaker for us. As @ben3005 mentioned, https://github.com/IndigoUnited/node-cross-spawn is a popular solution for the windows spawn issues and is a drop-in replacement for If bringing in a dependency is a concern, it would be nice to at least make the const spawn = require('child-process-promise').useSpawn(require('cross-spawn')).spawn;
spawn(...).then(...)
... That would let us easily use the two modules together, or potentially publish a second module that combines the two (e.g., |
I support the idea of making the |
use cross-spawn for windows #8
Seems to be working on Windows since TintypeMolly@8a08e9c, thanks! It's README-worthy, IMO. |
Confirmed working for me on Windows as well, perhaps this issue can be closed? |
@Globegitter can we close please this? I came across |
This reverts commit 8a08e9c.
Revert "use cross-spawn for windows patrick-steele-idem#8"
use cross-spawn for windows patrick-steele-idem#8
This reverts commit 8a08e9c.
Revert "use cross-spawn for windows patrick-steele-idem#8"
It seems when I try to use this on windows I just get the error
spawn ENOENT
. I am writing a cli tool that is working fine on Linux and Mac, but not on windows.I am still running a few tests (slowly) but right now it seems like the error is due to this library. Will update if I make more progress.
Edit: Yep, changing to https://www.npmjs.com/package/superspawn fixes the issue.
The text was updated successfully, but these errors were encountered: