-
Notifications
You must be signed in to change notification settings - Fork 3k
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 install / binary in wrong place #2998
Comments
I just ran into the same problem with |
For anyone in the same situation, to invoke the missing install script for cd node_modules/sqlite3
npx node-pre-gyp install --fallback-to-build |
For packages that don't have an install script, this is still an issue. On a fresh install with just-scripts, I expected to see the path |
Ran into this problem when using the ssh2 package. It couldn't find a binary dependency and thus didn't run. |
I don't think this is an issue with Bun, it's caused by Sentry's own CLI wrapping script. The Sentry CLI is written in Rust, and therefore is a bit "wacky" regarding npm installs. Basically, they have:
And, due to Bun not executing lifecycle scripts, this Rust binary install script is never called. This is "due to security risks", which makes sense. Can you add {
"name": "my-app",
"version": "1.0.0",
...
"trustedDependencies": ["@sentry/cli"],
...
} Then run:
No idea why Sentry just doesn't ship their Rust binary within the npm package, and instead, rely on remotely downloading an executable binary 🙈 |
Had this same issue and this fix worked for me! Thank you @byCedric!!! |
Hey, I am having the same issue with |
Closing as complete. This was fixed when support for lifecycle scripts was added to Packages that aren't in the default trusted list will need to be added to |
What version of Bun is running?
0.6.2
What platform is your computer?
Darwin 22.4.0 arm64 arm
What steps can reproduce the bug?
notice sentry-cli below.
with Bun the sentry-cli binary is not there
What is the expected behavior?
It looks like bun install is not handling certain part of the package install correctly or am I missing something?
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: