Error: Could not locate the bindings file. this error happened while loading quick.db

Error: Could not locate the bindings file. Tried:

→ /rbd/pnpm-volume/3322f5fd-9a6f-4a69-8da4-42169ab29307/node_modules/.registry.npmjs.org/better-sqlite3/7.1.1/node_modules/better-sqlite3/build/better_sqlite3.node
→ /rbd/pnpm-volume/3322f5fd-9a6f-4a69-8da4-42169ab29307/node_modules/.registry.npmjs.org/better-sqlite3/7.1.1/node_modules/better-sqlite3/build/Debug/better_sqlite3.node
→ /rbd/pnpm-volume/3322f5fd-9a6f-4a69-8da4-42169ab29307/node_modules/.registry.npmjs.org/better-sqlite3/7.1.1/node_modules/better-sqlite3/build/Release/better_sqlite3.node
→ /rbd/pnpm-volume/3322f5fd-9a6f-4a69-8da4-42169ab29307/node_modules/.registry.npmjs.org/better-sqlite3/7.1.1/node_modules/better-sqlite3/out/Debug/better_sqlite3.node
→ /rbd/pnpm-volume/3322f5fd-9a6f-4a69-8da4-42169ab29307/node_modules/.registry.npmjs.org/better-sqlite3/7.1.1/node_modules/better-sqlite3/Debug/better_sqlite3.node
→ /rbd/pnpm-volume/3322f5fd-9a6f-4a69-8da4-42169ab29307/node_modules/.registry.npmjs.org/better-sqlite3/7.1.1/node_modules/better-sqlite3/out/Release/better_sqlite3.node
→ /rbd/pnpm-volume/3322f5fd-9a6f-4a69-8da4-42169ab29307/node_modules/.registry.npmjs.org/better-sqlite3/7.1.1/node_modules/better-sqlite3/Release/better_sqlite3.node
→ /rbd/pnpm-volume/3322f5fd-9a6f-4a69-8da4-42169ab29307/node_modules/.registry.npmjs.org/better-sqlite3/7.1.1/node_modules/better-sqlite3/build/default/better_sqlite3.node
→ /rbd/pnpm-volume/3322f5fd-9a6f-4a69-8da4-42169ab29307/node_modules/.registry.npmjs.org/better-sqlite3/7.1.1/node_modules/better-sqlite3/compiled/8.15.1/linux/x64/better_sqlite3.node
→ /rbd/pnpm-volume/3322f5fd-9a6f-4a69-8da4-42169ab29307/node_modules/.registry.npmjs.org/better-sqlite3/7.1.1/node_modules/better-sqlite3/addon-build/release/install-root/better_sqlite3.node
→ /rbd/pnpm-volume/3322f5fd-9a6f-4a69-8da4-42169ab29307/node_modules/.registry.npmjs.org/better-sqlite3/7.1.1/node_modules/better-sqlite3/addon-build/debug/install-root/better_sqlite3.node
→ /rbd/pnpm-volume/3322f5fd-9a6f-4a69-8da4-42169ab29307/node_modules/.registry.npmjs.org/better-sqlite3/7.1.1/node_modules/better-sqlite3/addon-build/default/install-root/better_sqlite3.node
→ /rbd/pnpm-volume/3322f5fd-9a6f-4a69-8da4-42169ab29307/node_modules/.registry.npmjs.org/better-sqlite3/7.1.1/node_modules/better-sqlite3/lib/binding/node-v57-linux-x64/better_sqlite3.node
at bindings (/rbd/pnpm-volume/3322f5fd-9a6f-4a69-8da4-42169ab29307/node_modules/.registry.npmjs.org/bindings/1.5.0/node_modules/bindings/bindings.js:126:9)
at Object. (/rbd/pnpm-volume/3322f5fd-9a6f-4a69-8da4-42169ab29307/node_modules/.registry.npmjs.org/better-sqlite3/7.1.1/node_modules/better-sqlite3/lib/database.js:9:24)
at Module._compile (module.js:653:30)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (/rbd/pnpm-volume/3322f5fd-9a6f-4a69-8da4-42169ab29307/node_modules/.registry.npmjs.org/better-sqlite3/7.1.1/node_modules/better-sqlite3/lib/index.js:2:18)

how can i solve the error



1 Like

Any ideas on how I can fix it?

Did you read the posts above?

1 Like

no i don’t read it

Could you have a look? I believe quite a few people have had the same issue as you.

2 Likes

I read them but still haven’t reached the solution

What node version are you using?

1 Like

I guess 12. Because I just started the project.Where do I look at my version

Where do I look at version

Run:

node -p 'require("./package.json").engines.node'

in your console to get it.

I wrote it and its output;
8.x

Updated to version 12 but still same error

Hi, does running enable-pnpm in the terminal work?

1 Like

turns out using better-sqlite3 would require running rm -rf node_modules && enable-pnpm && pnpm i for some reason

yes ,i wrote