Skip to content

Cannot install @prisma/adapter-better-sqlite3 on Node.js v24 #28624

@bhbs

Description

@bhbs

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.

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions