-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Bug?]: yarn postinstall script doesn't execute #5276
Comments
Yarn doesn't print the postinstall output, unless they fail. |
@arcanis I see that this issue was closed. But my After updating yarn to To simplify the script just do something like this:
The file is not created. I am using these versions: |
Update: I just noticed that So if you invoke |
I still get this error although it's closed. Please help if you can |
this should stay open until solved |
@dev-richardnguyen @b3nab If you have a different situation, please open a new bug report with reproduction, or an enhancement request with justification. |
I'm referring to @wataruian issue. Basically yarn runs postinstall only if there is a change in the dependencies of to node_modules. On npm the behaviour is different and those pre/post scripts are called every time as far as I know. I was not able to find a way to restore the same behaviour of npm, that's all. EDIT: @clemyan you're right, the original issue describe a different problem which surely can be solved with the config you wrote. I think there was a confusion and the real issue is already opened here yarnpkg/yarn#5476 |
Self-service
Describe the bug
As mentioned in docs postinstall script should execute after packages are written to the disk, but it doesn't
To reproduce
.yarnrc.yaml
package.json
terminal
output:
no
Success
messageEnvironment
Additional context
No response
The text was updated successfully, but these errors were encountered: