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

Cannot install some npm packages with prebuilt binaries (windows) #145

Closed
kikohs opened this issue Aug 21, 2024 · 1 comment
Closed

Cannot install some npm packages with prebuilt binaries (windows) #145

kikohs opened this issue Aug 21, 2024 · 1 comment

Comments

@kikohs
Copy link

kikohs commented Aug 21, 2024

I'm continuing my exploration of the standalone release, unfortunately I couldn't install any of the following packages:

PGlite (postgres lite)
@electric-sql/pglite

LanceDB (vector database)
@lancedb/lancedb

SQLite with vector extension
sqlite-vec

They all rely on prebuilt binaries, and they don't match the electron version build if any. I tried to manually copy the right binary but on patch reload it's deleted.

Making op to store things in a local DB could be a great addition to the standalone release.

Thank you very much

@steam0r
Copy link
Collaborator

steam0r commented Nov 20, 2024

sooo...

cables standalone will now not delete previous node_modules if one build errors, npm install does though...

they seem to think thats the right behaviour. anyhow:

sqlite-vec: comes with a precompiled binary that is compiled for the wrong nodevesion, cables standalone will show this in the console in the next release and a npm install better-sqlite3 and npx "@electron/rebuild" -v 31.7.3 fixes this...if you have nodejs installed on your machine, that is

@lancedb/lancedb: has a peer depedency of apache-arrow that needs to be resolved externally by doing npm install apache-arrow in the op directory

@electric-sql/pglite: crashes everything for unknown reasons....

next release will have more npms working, and better guidance if things do not work. that being said, all of these are more "backend" npms and these type of dependencies might need to be repackaged or have their binaries rebuilt...which cables will try to guide you through, now

@steam0r steam0r added done and removed done labels Nov 20, 2024
@pandrr pandrr added the done label Nov 25, 2024
@steam0r steam0r closed this as completed Dec 2, 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

3 participants