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

bun install freeze when node-gyp trying to install Node.js #15881

Open
Igloczek opened this issue Dec 19, 2024 · 0 comments
Open

bun install freeze when node-gyp trying to install Node.js #15881

Igloczek opened this issue Dec 19, 2024 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@Igloczek
Copy link

Igloczek commented Dec 19, 2024

What version of Bun is running?

1.1.40

What platform is your computer?

Linux 6.8.0-40-generic aarch64 aarch64

What steps can reproduce the bug?

  1. Clone the reproducible repo - https://github.com/Igloczek/bun-debug
  2. Run docker build . --no-cache --progress=plain

What is the expected behavior?

Docker properly builds the image.

What do you see instead?

Process is getting stuck when trying to install Node.js to run some postinstall scripts.

#9 0.848 [PackageManager] waiting for 1 tasks
#9 0.848 [Scripts] Starting scripts for "msgpackr-extract"
#9 0.922 23 | var uv = (versions.uv || '').split('.')[0]
#9 0.922 24 | 
#9 0.922 25 | module.exports = load
#9 0.922 26 | 
#9 0.922 27 | function load (dir) {
#9 0.922 28 |   return runtimeRequire(load.resolve(dir))
#9 0.922               ^
#9 0.922 TypeError: expected module name as a string
#9 0.922       at load (/usr/src/app/node_modules/node-gyp-build-optional-packages/node-gyp-build.js:28:10)
#9 0.922       at /usr/src/app/node_modules/node-gyp-build-optional-packages/build-test.js:19:6
#9 0.922 
#9 0.922 Bun v1.1.40 (Linux arm64)
#9 0.922 
#9 0.922 The failure above indicates the primary issue with the native builds which are included for all major platforms. Will now attempt to build the package locally in case this can be resolved by re-compiling.
#9 2.034 gyp info it worked if it ends with ok
#9 2.034 gyp info using [email protected]
#9 2.035 gyp info using [email protected] | linux | arm64
#9 2.103 gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
#9 2.262 
#9 2.264 gyp http GET https://nodejs.org/dist/v22.6.0/node-v22.6.0-headers.tar.gz
#9 2.373 gyp http 200 https://nodejs.org/dist/v22.6.0/node-v22.6.0-headers.tar.gz

Additional information

For some unknown to me reason, this only fails when I'm trying to build the image on my Hetzner Ampere based VPS. When building locally on macOS, with Orb Stack, it just works.

When I install Node.js before running bun install it also works just fine.

@Igloczek Igloczek added bug Something isn't working needs triage labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant