-
Notifications
You must be signed in to change notification settings - Fork 791
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
postinstall task fails when installing on windows #516
Comments
Dang, that's a bummer. It's true, the postinstall script would probably only work on Git Bash. Either we need to exclude that npm script and file if it isn't supported, or we need a way to differentiate between end-user installs and development installs. I'll have to look into this some more. What I was trying to avoid was having contributors miss the pre-commit hook in an opt-in npm script instead of running it automatically. |
@molant in the future can you keep an eye out for our alpha releases? We had two alpha versions of 2.4.0 before this was released–would have been a good opportunity to find out about the Windows problem. I've been posting about them on Twitter and tagging on https://github.com/dequelabs/axe-core/releases. |
Will do. We were relying on greenkeeper to get notifications of new versions but it hasn't notify us of anything for the last few weeks :/
Maybe have a small script that modifies |
+1. Also postinstall script doesn't work on Git Bash. |
That sounds good. I'll work on it for our next patch release. Really surprising it doesn't work in Git Bash....as an action item moving forward we'll see what we can do about running our tests on Windows using CI to catch this kind of stuff with minimal effort. #519 |
FWIW it works on my machine (tm) using build 16281 (latest public insider).
|
We use https://www.npmjs.com/package/in-publish for node-sass and then guard those scripts The scripts are just JS rather than Bash though |
* fix(postinstall): use node, more conditionals Closes #516 * chore: move fs-extra to devDependencies
Fixed with 2.4.1. |
Thanks @marcysutton ! |
* fix(postinstall): use node, more conditionals Closes #516 * chore: move fs-extra to devDependencies
* fix(postinstall): use node, more conditionals Closes #516 * chore: move fs-extra to devDependencies
…quelabs#516) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
How to repro
Run
npm install axe-core
on a Windows machine in regular cmd (not Bash on Windows).This is the output:
This is the npm debug log:
2017-09-09T03_30_18_327Z-debug.txt
We are looking into updating to the latest version in https://github.com/sonarwhal/sonar, but the tool needs to run in any OS so we can't at the moment :(
The text was updated successfully, but these errors were encountered: