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
Fix postinstall npm script on Windows #73
Comments
Looks like f4623ba introduced a I suppose ideally it shouldn't trigger |
Are you installing from a git repo, @bryaneaton13? |
@mjackson I'm using npm to install it. |
@mjackson The problem is that node -e \"require('fs').stat('lib', function (e, s) { process.exit(e || !s.isDirectory() ? 1 : 0) })\" I suppose the question is why that guard might fail in this case. Why else would it try to trigger Babel unless this check fails? |
@bryaneaton13 Can you provide more info? Which version of Node are you using? Do you get the same error when running the |
|
@bryaneaton13 Are you running on Windows? |
@taion Yep |
I think that's the issue - I believe you can't do |
I guess that means Now that we know what the problem is, anyone want to make a PR? |
|
ok, @bryaneaton13. I think if we use
|
I think that might break installing when the built files are present, though, since you'd be exiting with a non-zero status code. Per https://docs.npmjs.com/misc/scripts#best-practices:
|
Bah, good point. Any ideas? Last time I wrote code for CMD.exe was at least On Thu, Oct 8, 2015 at 5:53 PM Jimmy Jia notifications@github.com wrote:
|
I'm not super familiar with
ETA: I mean it works in Bash, and I think it should work on Windows. |
Ya, I think you're right. Let's try that. |
When installing, the build step complains that
'babel' is not recognized as an internal or external command, operable program or batch file.
I installed babel as a dev dependency in my project and then history was able to install correctly.
Could the build step be changed to run babel from the node_modules instead?
(I'm on Windows btw)
The text was updated successfully, but these errors were encountered: