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 output is not complete #8303

Open
ooooevan opened this issue Aug 18, 2020 · 2 comments
Open

postinstall output is not complete #8303

ooooevan opened this issue Aug 18, 2020 · 2 comments

Comments

@ooooevan
Copy link

ooooevan commented Aug 18, 2020

Bug description

I use postinstall hook in my package,the output is not complete,maybe related to #5476.

When the postinstall runs right,there is no output ,when runs wrong, it will get the wrong output.
but my wrong output is not complete

 yarn add test-postinstall-o@1.1.0

The postinstall code is :

console.log('postinstall...');
console.log('postinstall...');
console.log('postinstall...');
console.log('will exit with code 1');
process.exit(1);

What is the current behavior?

The first time, in Windows PowerShell ,i got the full output:

postinstall...
postinstall...
postinstall...
will exit with code 1

After this time, i didn't get the complete output any more,
image

I delete node_modules and still like that

I was confused and i use the Git Bash,i always got the complete output
image

What is the expected behavior?

I should get the complete output like the first time,or where to clean the cache

Environment

  • Node Version: 12.16.1
  • Yarn v1 Version: 1.22.0
  • OS and version: win 10
@ooooevan ooooevan changed the title postinstall output is postinstall output is not complete Aug 18, 2020
@ooooevan
Copy link
Author

By the way, the reason i found this is that: i didn't got the output when the postinstall script get wrong,and i got the output when i use --verbose .

@shiftj18
Copy link

Has some config like npm foreground-scripts ?

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

2 participants