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 with Inquirer CLI exits with error #7983

Open
bsian03 opened this issue Mar 11, 2020 · 1 comment
Open

Postinstall script with Inquirer CLI exits with error #7983

bsian03 opened this issue Mar 11, 2020 · 1 comment

Comments

@bsian03
Copy link

bsian03 commented Mar 11, 2020

Bug description

Installing a module which has a postinstall script which utilises the Inquirer module causes yarn to exit with error code 1 without allowing the user to interact with the CLI

Command

yarn install [module which contains postinstall]

What is the current behavior?
Exits with code 1, giving the output as whatever the first prompt is.
This does not seem to happen when running yarn run postinstall in the module directly

What is the expected behavior?
Interactive CLI should run as normal - just as it does when installing with npm

Steps to Reproduce

  1. Find a module which utilises an interactive CLI in postinstall. For this example I'm using bsian03/AxonCore#dev-docs (my fork of a repository which I'm working on dynamic typings based on user input for)
  2. Install that module

Environment

  • Node Version: 12.9.1
  • Yarn v1 Version: 1.22.4
  • OS and version: Windows 10 Home, Build 18362 (10.0.18362)
@bsian03
Copy link
Author

bsian03 commented Mar 11, 2020

Just a note, our CI errors with code 130 and not code 1 as I mentioned, code 1 only seems to happen upon user installation
This is no longer relevant and the error code with the CI has been fixed

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

No branches or pull requests

1 participant