-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
solve #306, and bin in $PATH make sense now #307
Conversation
I have no idea how to compatible with Windows here #142 |
Now windows also make sense. I will write some tests for this later. |
var local = path.join(dir, bin); | ||
if (fs.existsSync(local)) bin = local; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's deprecated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rlidwka Not yet heard that, Thanks a lot. Maybe we can replace it with fs.accessSync
after v0.12, but it makes sense now.
called "nodejs", and on windows it might be renamed too because of the conflict with node.exe service from microsoft. thx @rlidwka
Looks like this fixes more than one edge case. Can we get the tests passing? |
called "nodejs", and on windows it might be renamed too because of the conflict with node.exe service from microsoft. thx @rlidwka
var proc = spawn('node', args, { stdio: 'inherit', customFds: [0, 1, 2] }); | ||
|
||
var proc; | ||
if (process.platform !== 'win32') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the commit, bin
file must have shebang
itself
Closed for too many commits. I'll open another PR |
solve #306, and bin in $PATH make sense now #196
Almost revert #173 which lead to the bug in #306
Also remove deprecated
customFds
option in spawn