Skip to content
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 script crashes consumer application #151

Closed
bennycode opened this issue May 24, 2019 · 1 comment · Fixed by #159
Closed

postinstall script crashes consumer application #151

bennycode opened this issue May 24, 2019 · 1 comment · Fixed by #159
Assignees

Comments

@bennycode
Copy link

Describe the bug
I published an application on npm which uses caporal as dependency. When installing my application as a global node package, I am getting the following error:

C:\Users\bennyn>npm i -g swaxios
C:\Users\bennyn\AppData\Roaming\npm\swaxios -> > C:\Users\bennyn\AppData\Roaming\npm\node_modules\swaxios\dist\cli.js
[email protected] postinstall C:\Users\bennyn\AppData\Roaming\npm\node_modules\swaxios\node_modules\core-js
node -e "try { require('./scripts/postinstall'); } catch (e) { /* empty */ }"
Thank you for using core-js ( https://github.com/zloirock/core-js )!
Please consider supporting of core-js on Open Collective or Patreon:
https://opencollective.com/core-js
https://www.patreon.com/zloirock
[email protected] postinstall C:\Users\bennyn\AppData\Roaming\npm\node_modules\swaxios\node_modules\spawn-sync
node postinstall
[email protected] postinstall C:\Users\bennyn\AppData\Roaming\npm\node_modules\swaxios\node_modules\caporal
(test -f ./node_modules/husky/bin/install.js && node ./node_modules/husky/bin/install.js) || exit 0

To Reproduce
Steps to reproduce the behavior:

Expected behavior
No error message from Caporal's "postinstall" npm script.

Environment informations (please complete the following information):

  • OS: Windows
  • OS version: 10
  • Shell: cmd
  • Caporal version: 1.2.0

Screenshot

image

@bennycode bennycode changed the title postinstall script screws up consumer application postinstall script crashes consumer application May 24, 2019
@rajeshduggal
Copy link

"test -f " fails on windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants