postinstall task fails when installing on windows
See original GitHub issueHow to repro
Run npm install axe-core
on a Windows machine in regular cmd (not Bash on Windows).
This is the output:
C:\Projects\tests>npm install axe-core
> axe-core@2.4.0 postinstall C:\Projects\tests\node_modules\axe-core
> ./bin/postinstall.sh
'.' is not recognized as an internal or external command,
operable program or batch file.
npm WARN enoent ENOENT: no such file or directory, open 'C:\Projects\tests\package.json'
npm WARN tests No description
npm WARN tests No repository field.
npm WARN tests No README data
npm WARN tests No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! axe-core@2.4.0 postinstall: `./bin/postinstall.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the axe-core@2.4.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\antonmo\AppData\Roaming\npm-cache\_logs\2017-09-09T03_30_18_327Z-debug.log
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 😦
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:9 (5 by maintainers)
Top Results From Across the Web
WSUS reinstallation and post install configuration fails
1) Open a PowerShell session as Administrator and uninstall WSUS completely with the following command: · 2) Delete the registry key HKLM\ ...
Read more >SDA Post Install Tasks Failing - Systems Deployment - ITNinja
HiSome post-installation tasks are showing as failed and interrupting the script, even though the application has actually installed.
Read more >Post-Install Task - The system cannot find the file specified.
I am running into an issue where for one post-install task. ... The error that KACE is giving me is: Task ... Microsoft...
Read more >Troubleshoot the Learn Environment Post Install or Upgrade
If the installer fails, check the log file to help determine the problem. The log file includes a considerable amount of information about...
Read more >Execution of Pre/Post installation Tasks Failed - Xilinx Support
Hi, I'm trying to install Vivado 2018.2 but I keep getting the attached error. Execution of Pre/Post Installation Tasks Failed Warning: Xilinx software...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+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. https://github.com/dequelabs/axe-core/issues/519