-
Notifications
You must be signed in to change notification settings - Fork 1
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
'Fatal error: spawn <cmd> ENOENT' under windows #14
Comments
Okay, that makes sense. I'm not a big windows user, so I don't always think about these corner cases. A simple ternary on process.platform would be sufficient. |
Yes, it works now as expected. Thanks for the quick response! One more idea: |
I did wonder if they would attempt to preserve backward compatibility with that issue. I guess it's a simple check either way... |
Do you mean checking if |
Well, i meant, just to check if the |
Oh, I see. Like, don't overwrite it if it's already there. |
No, the other way round. But I think you are right, probably they will never change it. So it is not a big deal and the check is not necessary. |
Published changes as 5.0.5 |
Great work, thanks! |
When using https://www.npmjs.com/package/grunt-simple-nyc to add nyc to grunt, an error was displayed:
grunt-simple-nyc internally uses simple-cli to call the nyc command line tool, which is an npm module residing in the ./node_modules/.bin directory.
simple-cli has a feature to add this directory to the path variable; this fails under Windows, since it is added with the wrong casing.
The constructor adds it with these lines:
the last line uses "Path" in all upper case letters; the windows version of node seems to use the casing `Path'
(it looks like there is an issue for this: nodejs/node#20605)
Changing the last line of the above code block to
makes simple-cli work as expected.
The text was updated successfully, but these errors were encountered: