Hi,
What is the alternative and recommended way to build from source using pnpm?
https://github.com/WiseLibs/better-sqlite3/blob/master/docs/compilation.md#custom-configuration
Thanks.
I tried running the npm command in the project using pnpm, it didnt work, it stopped with an error in the log.
TypeError: Cannot read properties of null (reading 'matches')
at Link.matches (/home/user/.local/share/mise/installs/node/22.14.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/node.js:1117:41)
at Link.canDedupe (/home/user/.local/share/mise/installs/node/22.14.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/node.js:1071:15)
at PlaceDep.pruneDedupable (/home/user/.local/share/mise/installs/node/22.14.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:426:14)
at new PlaceDep (/home/user/.local/share/mise/installs/node/22.14.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:278:14)
at new PlaceDep (/home/user/.local/share/mise/installs/node/22.14.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:314:26)
at #buildDepStep (/home/user/.local/share/mise/installs/node/22.14.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:920:18)
at async Arborist.buildIdealTree (/home/user/.local/share/mise/installs/node/22.14.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:181:7)
at async Promise.all (index 1)
at async Arborist.reify (/home/user/.local/share/mise/installs/node/22.14.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:131:5)
at async Install.exec (/home/user/.local/share/mise/installs/node/22.14.0/lib/node_modules/npm/lib/commands/install.js:150:5)
Edit:
I noticed after, where you mention that some options are already enabled with better-sqlite3 by default like FTS5.
I suppose it would still be useful in having the information in how to do it, but otherwise, this is not needed anymore.
Hi,
What is the alternative and recommended way to build from source using
pnpm?https://github.com/WiseLibs/better-sqlite3/blob/master/docs/compilation.md#custom-configuration
Thanks.
I tried running the
npmcommand in the project usingpnpm, it didnt work, it stopped with an error in the log.Edit:
I noticed after, where you mention that some options are already enabled with better-sqlite3 by default like FTS5.
I suppose it would still be useful in having the information in how to do it, but otherwise, this is not needed anymore.