-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Bun doesn't run install scripts on packages #4738
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
Thanks for reporting, we're going to fix this in the next release. Until then, you do the following: package.json: {
"trustedDependencies": [
"re2"
]
} Remove, then add so postinstall script is run. bun remove re2
bun add re2 |
@Electroid I'm curious what you're going to fix; the current documented behavior seems very intentional. Is |
implementing #3756 would make it clear whether or not dependencies' postinstall scripts needs to be ran |
#3756 (comment) |
@jakeboone02 I just hope the "fix" is a flag that disables this behaviour. I understand the value of having this as a default, it's good for new projects... but if you want to start using bun on an existing large project it's really clunky, quite a chore figuring out which dependencies are running pre/post. |
For anyone struggling with getting the postinstall to run for a transitive dependency, delete both |
Same problem when Installing re2 . @Electroid solution fixed it but now bun run throw an error:
|
Duplicate of #4959 |
Fixed by @dylan-conway and @paperdave in #7132 This will be part of the Bun v1.0.17 release, which ships in a few hours from the time of writing. |
What version of Bun is running?
1.0.0+822a00c4d508b54f650933a73ca5f4a3af9a7983
What platform is your computer?
Darwin 23.0.0 arm64 arm
What steps can reproduce the bug?
bun install re2
What is the expected behavior?
Bun installs the module and runs its install script (which does work when done manually in the module's node_modules folder by calling
bun run install
)What do you see instead?
The module doesn't get its script ran
Additional information
There seems to be another unrelated issue to re2, most likely related to the native layer not working between node and bun (which makes sense)
The text was updated successfully, but these errors were encountered: