-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
Installation error: No prebuilt binaries found (target=20.3.1 runtime=node arch=arm64 libc= platform=darwin) #1027
Comments
Just out of curiosity: Does it work if you use npm / yarn? Just to remove pnpm from the checklist. Regarding the log lines it does not look like an issue with better-sqlite3 itself but a problem on the target machine or somewhere in the involved utility libs for looking up / loading the prebuilt binaries. I'm not that used to the MacOS eco system, but Also it looks like that node-gyp is missing on your machine as the 3 log line states |
Thanks for the response. I did some more digging:
|
Well regarding the observation of point 4: That is correct and expected. There have been changes in the Node API and the required adjustments were introduced with better-sqlite3@8.0.0. For version 7.6.2 there are no prebuilt binaries available for the combination of arm64 and darwin. What makes it strange, because you said, that you were able to install it before installing node-gyp? Afaik there is no other way than looking in the install output to determine if a prebuilt module is being used or if it was built from source - beside afterwards checking if there are any other files present under node_modules/better-slite3/build/Release than the better_sqlite3.node file. |
EDIT: This is indeed strange. I have a hunch that (many months ago) I built Thanks for the tip on checking Any idea why |
Well which prebuilts? If you are still trying to use 7.6.2 -> There are none available for your machine architecture. If prebuilt-install does not find prebuilt binaries for 8.4.0 that would be strange and I don't think it could be solved by better-sqlite3 alone. So far I did not encounter this issue on multiple automated build platforms (win x64, darwin x64 and darwin arm64). |
For a workaround, just run |
@ImSingee running this command first helped me out of a pickle when installing supabase, which also seems to depend on better-sqlite3 (in a Sveltekit context). Thank you. |
I'm can't install
better-sqlite3
using the prebuilt binaries on my local machine. My versions are very similar to #1022, but I'm using pnpm.Here's the original error message:
I suspected that this was not the full story, so I ran it again using
pnpm add better-sqlite3 --reporter ndjson
and found the actual error:Any idea why it's not finding the prebuilt binary? My understanding is that there is a prebuilt binary matching
(target=20.3.1 runtime=node arch=arm64 libc= platform=darwin)
forbetter-sqlite3@8.4.0
.The text was updated successfully, but these errors were encountered: