-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Cannot install @prisma/adapter-better-sqlite3 on Node.js v24 #28624
Description
Bug description
@prisma/adapter-better-sqlite3 currently depends on better-sqlite3 ^11.0.0.
better-sqlite3 attempts to download a prebuilt binary during installation, and falls back to building via node-gyp when no binary is available.
However, version ^11.0.0 only supports up to NODE_MODULE_VERSION 131, which means no binaries are available for Node.js v24 (NODE_MODULE_VERSION 137). See releases. As a result, on Node.js v24 environments node-gyp is always required.
Severity
🔹 Minor: Unexpected behavior, but does not block development
Reproduction
without node-gyp
install Node.js v24
npm isntall @prisma/adapter-better-sqlite3
Expected vs. Actual Behavior
Installed successfully
Frequency
Consistently reproducible
Does this occur in development or production?
Only in development (e.g., CLI tools, migrations, Prisma Studio)
Is this a regression?
No
Workaround
Bump better-sqlite3
Prisma Schema & Queries
∅
Prisma Config
No response
Logs & Debug Info
No response
Environment & Setup
- OS: Any
- Database: ∅
- Node.js version: v24 v25 w/o node-gyp
Prisma Version
Any