-
Notifications
You must be signed in to change notification settings - Fork 29
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
Subcommands doesn't work on windows #88
Comments
Hey, did you try this: #46? |
@ntwcklng yes, I have the binary scripts in |
Unfortunately i don't own a windows machine, can anyone else help & debug? |
Could be worth setting up AppVeyor tests for a tool like this. |
@julianduque can you please test if this works? if (process.platform === 'win32') {
// Run binary of sub command on windows
args.unshift(full)
this.child = spawn(process.execPath, args, {
stdio: 'inherit'
});
} else {
// Run binary of sub command
this.child = spawn(full, args, {
stdio: 'inherit'
});
} It should work when the binary has no |
I now have access to a windows machine and came up with this fix: bf22203 |
Looks good to me as a start, @ntwcklng! 😊 |
@ntwcklng I tested your solution but still not luck. This is what I get now:
The "bin": {
"mytool": "./bin/mytool.js",
"mytool-config": "./bin/mytool-config.js"
}, Seems it's looking for |
@ntwcklng is working now. I think the PR is ready to be merge now that is working as expected on Windows. |
@Gioyik, @julianduque released in |
@ntwcklng thank you, we appreciate the really fast answer from you and Leo. |
The subcommand binary isn't found on windows environments
The text was updated successfully, but these errors were encountered: