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

npm_config_target_arch=arm64 install x64 on a x64 server #1747

Open
Zoey2936 opened this issue Jan 7, 2024 · 1 comment
Open

npm_config_target_arch=arm64 install x64 on a x64 server #1747

Zoey2936 opened this issue Jan 7, 2024 · 1 comment

Comments

@Zoey2936
Copy link

Zoey2936 commented Jan 7, 2024

Issue Summary

when I run (on x64 server):

npm_config_target_platform=linux npm_config_target_arch=arm64 yarn add sqlite3@v5.1.6
file node_modules/sqlite3/lib/binding/napi-v6-linux-musl-arm64/node_sqlite3.node 

it returns:
node_modules/sqlite3/lib/binding/napi-v6-linux-musl-arm64/node_sqlite3.node: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, with debug_info, not stripped

when doing the same with v5.1.7:

npm_config_target_platform=linux npm_config_target_arch=arm64 yarn add sqlite3@v5.1.7
file node_modules/sqlite3/build/Release/node_sqlite3.node

it returns:
node_modules/sqlite3/build/Release/node_sqlite3.node: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, with debug_info, not stripped

so v5.1.7 installs the x64 binary even if I say I want the arm64 binary

Relevant logs or output

see above

Version

v5.1.7

Node.js Version

v21.5.0

How did you install the library?

npm_config_target_platform=linux npm_config_target_arch=arm64 yarn add sqlite3@version

@laurent22
Copy link

It seems we had the same issue with 5.1.7 - in our case it was with an Electron app and apparently it resulted in an x64 version being built instead of arm64. Reverting to 5.1.6 fixed the issue: laurent22/joplin#9922

That's not great anyway to have such major bug in a patch release. Are the developers even aware of the issue?

personalizedrefrigerator referenced this issue in laurent22/joplin Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants