Open spiffytech opened 1 month ago
Same problem with bun install msgpackr
Same problem with bun install
gyp: name 'enable_lto' is not defined while evaluating condition 'enable_lto=="true"' in binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at <anonymous> (/tmp/bunx-0-node-gyp@latest/node_modules/node-gyp/lib/configure.js:296:66)
gyp ERR! stack at emit (node:events:161:48)
gyp ERR! stack at #handleOnExit (node:child_process:591:16)
gyp ERR! stack at processTicksAndRejections (:12:39)
gyp ERR! System Linux 6.6.12-linuxkit
gyp ERR! command "/usr/local/bin/bun" "/tmp/bunx-0-node-gyp@latest/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /app/node_modules/tree-sitter-yaml
gyp ERR! node -v v22.2.0
gyp ERR! node-gyp -v v10.1.0
gyp ERR! not ok
error: install script from "tree-sitter-yaml" exited with 1
What version of Bun is running?
1.1.10
What platform is your computer?
Fedora Linux 6.8.9-200.fc39.x86_64
What steps can reproduce the bug?
Try installing the
re2
package. Here's a Dockerfile that reproduces:What is the expected behavior?
re2
installsWhat do you see instead?
Unless Node.js is installed, the node-gyp compile fails.
Additionally, I believe re2 attempts to download precompiled binaries, but cannot do so under Bun for some reason.
Additional information
I was surprised that this didn't work, given
re2
installation is demonstrated in the Bun v1.0.19 release blog post.