question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

postinstall task fails when installing on windows

See original GitHub issue

How 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:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
Landen13commented, Sep 11, 2017

+1. Also postinstall script doesn’t work on Git Bash.

1reaction
marcysuttoncommented, Sep 11, 2017

Maybe have a small script that modifies package.json and removes the postscript action before publishing on npm and then restores it back?

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found