Comments (7)
This is not an issue of better-sqlite3 but a known one with node-gyp in combination with Python, which both are required to get the native module compiled. While the prebuilt binaries are not yet available, you might have a look here #1154 (comment).
from better-sqlite3.
Compilation for Electron v29 requires the changes from #1151. So you may either install better-sqlite3 manually from the related branch or downgrade to Electron v28 in order to make use of the prebuilt binary.
from better-sqlite3.
Compilation for Electron v29 requires the changes from #1151. So you may either install better-sqlite3 manually from the related branch or downgrade to Electron v28 in order to make use of the prebuilt binary.
What you linked worked! Thanks.
However I'm now getting this error about node version and online it says to just rebuild again but that doesn't fix anything.
Error: The module '/home/dez/vsc/VideoDeck-V2/node_modules/better-sqlite3/build/Release/better_sqlite3.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 121. This version of Node.js requires
NODE_MODULE_VERSION 108. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
Any clue about how to fix this? Thanks.
from better-sqlite3.
That means that, while you now have a version of better-sqlite3 compiled for Electron v29 (module version 121), the actual runtime loading the native module is Node 18 (module version 108). My best guess would be, that your start script is not calling Electron for execution.
from better-sqlite3.
After upgrade to 9.4.4 and electron 29.1.6, I get this error when running yarn electron-rebuild
:
⠋ Building module: better-sqlite3, Completed: 0Traceback (most recent call last):
File "/Users/x/dev/y/node_modules/node-gyp/gyp/gyp_main.py", line 42, in
import gyp # noqa: E402
^^^^^^^^^^
File "/Users/x/dev/y/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 9, in
import gyp.input
File "/Users/x/dev/y/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in
from distutils.version import StrictVersion
ModuleNotFoundError: No module named 'distutils'
Error: gyp
failed with exit code: 1
at ChildProcess.onCpExit (/Users/x/dev/y/node_modules/node-gyp/lib/configure.js:325:16)
at ChildProcess.emit (node:events:518:28)
at ChildProcess._handle.onexit (node:internal/child_process:294:12)
✖ Rebuild Failed
from better-sqlite3.
Thank you @neoxpert for the information, it fixed my issue.
from better-sqlite3.
This is fixed in https://github.com/WiseLibs/better-sqlite3/releases/tag/v9.4.5
from better-sqlite3.
Related Issues (20)
- Can't install on MacOS Sonora, brew install v21.7.1, node@18 installs fine. HOT 1
- Release 9.4.4 misses native artifacts HOT 4
- I can't install this package HOT 4
- BigInt values is queries incorrectly HOT 1
- Using drizzle-kit with better-sqlite3 in an electron application HOT 1
- Update SQLite to version 3.45.2 HOT 1
- 7.6.1 does not build on Linux HOT 4
- treatment of default column aliases when none are specified HOT 3
- nodejs v20.12.2 python.exe v3.12 VS2017/2022 don‘t’ install better-sqlite3, ask for help HOT 1
- Error: Error relocating /nodejs/app/node_modules/better-sqlite3/build/Release/better_sqlite3.node: _ZN2v89Exception10RangeErrorENS_5LocalINS_6StringEEE: symbol not found HOT 1
- Is there any solution to speed up the UPDATE command? HOT 1
- cannot start from a readonly path HOT 2
- Add prebuilds for Node.js 22 HOT 2
- Missing v10.0.0 prebuilt packages for darwin-x64 and linux-arm HOT 7
- Support parameters names in exactly the syntax in which they are used in the query HOT 2
- Better-sqlite3 not working on termux HOT 1
- Uncaught TypeError:Cannot read properties od null(reading 'access‘) at node_modules/better-sqlite3/lib/methods/backup.js HOT 1
- Prebuild compilation error on win32-arm64 + Electron v25 HOT 3
- vscode extension use better-sqlite3 error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from better-sqlite3.