Error: Could not locate the bindings file. | Using quick.db

I keep getting this error whenever I try to use quick.db
Please help!!

(node:2075) UnhandledPromiseRejectionWarning: Error: Could not locate the bindings file. Tried:
4:50 PM
→ /rbd/pnpm-volume/93b21c41-037b-43a7-a1b3-7415a059ac51/node_modules/.registry.npmjs.org/quick.db/6.3.2/node_modules/quick.db/node_modules/better-sqlite3/build/better_sqlite3.node
4:50 PM
→ /rbd/pnpm-volume/93b21c41-037b-43a7-a1b3-7415a059ac51/node_modules/.registry.npmjs.org/quick.db/6.3.2/node_modules/quick.db/node_modules/better-sqlite3/build/Debug/better_sqlite3.node
4:50 PM
→ /rbd/pnpm-volume/93b21c41-037b-43a7-a1b3-7415a059ac51/node_modules/.registry.npmjs.org/quick.db/6.3.2/node_modules/quick.db/node_modules/better-sqlite3/build/Release/better_sqlite3.node
4:50 PM
→ /rbd/pnpm-volume/93b21c41-037b-43a7-a1b3-7415a059ac51/node_modules/.registry.npmjs.org/quick.db/6.3.2/node_modules/quick.db/node_modules/better-sqlite3/out/Debug/better_sqlite3.node
4:50 PM
→ /rbd/pnpm-volume/93b21c41-037b-43a7-a1b3-7415a059ac51/node_modules/.registry.npmjs.org/quick.db/6.3.2/node_modules/quick.db/node_modules/better-sqlite3/Debug/better_sqlite3.node
4:50 PM
→ /rbd/pnpm-volume/93b21c41-037b-43a7-a1b3-7415a059ac51/node_modules/.registry.npmjs.org/quick.db/6.3.2/node_modules/quick.db/node_modules/better-sqlite3/out/Release/better_sqlite3.node
4:50 PM
→ /rbd/pnpm-volume/93b21c41-037b-43a7-a1b3-7415a059ac51/node_modules/.registry.npmjs.org/quick.db/6.3.2/node_modules/quick.db/node_modules/better-sqlite3/Release/better_sqlite3.node
4:50 PM
→ /rbd/pnpm-volume/93b21c41-037b-43a7-a1b3-7415a059ac51/node_modules/.registry.npmjs.org/quick.db/6.3.2/node_modules/quick.db/node_modules/better-sqlite3/build/default/better_sqlite3.node
4:50 PM
→ /rbd/pnpm-volume/93b21c41-037b-43a7-a1b3-7415a059ac51/node_modules/.registry.npmjs.org/quick.db/6.3.2/node_modules/quick.db/node_modules/better-sqlite3/compiled/12.0.0/linux/x64/better_sqlite3.node
4:50 PM
→ /rbd/pnpm-volume/93b21c41-037b-43a7-a1b3-7415a059ac51/node_modules/.registry.npmjs.org/quick.db/6.3.2/node_modules/quick.db/node_modules/better-sqlite3/addon-build/release/install-root/better_sqlite3.node
4:50 PM
→ /rbd/pnpm-volume/93b21c41-037b-43a7-a1b3-7415a059ac51/node_modules/.registry.npmjs.org/quick.db/6.3.2/node_modules/quick.db/node_modules/better-sqlite3/addon-build/debug/install-root/better_sqlite3.node
4:50 PM
→ /rbd/pnpm-volume/93b21c41-037b-43a7-a1b3-7415a059ac51/node_modules/.registry.npmjs.org/quick.db/6.3.2/node_modules/quick.db/node_modules/better-sqlite3/addon-build/default/install-root/better_sqlite3.node
4:50 PM
→ /rbd/pnpm-volume/93b21c41-037b-43a7-a1b3-7415a059ac51/node_modules/.registry.npmjs.org/quick.db/6.3.2/node_modules/quick.db/node_modules/better-sqlite3/lib/binding/node-v72-linux-x64/better_sqlite3.node
4:50 PM
at bindings (/rbd/pnpm-volume/93b21c41-037b-43a7-a1b3-7415a059ac51/node_modules/.registry.npmjs.org/quick.db/6.3.2/node_modules/quick.db/node_modules/bindings/bindings.js:126:9)
4:50 PM
at Object. (/rbd/pnpm-volume/93b21c41-037b-43a7-a1b3-7415a059ac51/node_modules/.registry.npmjs.org/quick.db/6.3.2/node_modules/quick.db/node_modules/better-sqlite3/lib/database.js:4:40)
4:50 PM
at Module._compile (internal/modules/cjs/loader.js:759:30)
4:50 PM
at Object.Module._extensions…js (internal/modules/cjs/loader.js:770:10)
4:50 PM
at Module.load (internal/modules/cjs/loader.js:628:32)
4:50 PM
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
4:50 PM
at Module.require (internal/modules/cjs/loader.js:666:19)
4:50 PM
at require (internal/modules/cjs/helpers.js:16:16)
4:50 PM
at Object. (/rbd/pnpm-volume/93b21c41-037b-43a7-a1b3-7415a059ac51/node_modules/.registry.npmjs.org/quick.db/6.3.2/node_modules/quick.db/node_modules/better-sqlite3/index.js:2:18)
4:50 PM
at Module._compile (internal/modules/cjs/loader.js:759:30)
4:50 PM
(node:2075) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
4:50 PM
(node:2075) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Could you attempt to execute npm rebuild quick.db and npm rebuild better-sqlite3 in console?

Got an error:
make: Entering directory ‘/rbd/pnpm-volume/93b21c41-037b-43a7-a1b3-7415a059ac51/node_modules/.registry.npmjs.org/quick.db/6.3.2/node_modules/quick.db/node_modules/integer/build’
CXX(target) Release/obj.target/integer/src/integer.o
…/src/integer.cpp: In static member function ‘static Result Integer::Cast(v8::Localv8::String, uint8_t)’:
…/src/integer.cpp:329:33: error: no matching function for call to ‘v8::String::Value::Value(v8::Localv8::String&)’
v8::String::Value utf16(string);
^
In file included from /app/.node-gyp/12.0.0/include/node/node.h:63:0,
from …/src/integer.hpp:3,
from …/src/integer.cpp:1:
/app/.node-gyp/12.0.0/include/node/v8.h:3018:5: note: candidate: v8::String::Value::Value(v8::Isolate*, v8::Localv8::Value)
Value(Isolate* isolate, Localv8::Value obj);
^
/app/.node-gyp/12.0.0/include/node/v8.h:3018:5: note: candidate expects 2 arguments, 1 provided
integer.target.mk:110: recipe for target ‘Release/obj.target/integer/src/integer.o’ failed
make: *** [Release/obj.target/integer/src/integer.o] Error 1
make: Leaving directory ‘/rbd/pnpm-volume/93b21c41-037b-43a7-a1b3-7415a059ac51/node_modules/.registry.npmjs.org/quick.db/6.3.2/node_modules/quick.db/node_modules/integer/build’
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/opt/nvm/versions/node/v12.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:196:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:256:12)
gyp ERR! System Linux 4.4.0-1085-aws
gyp ERR! command “/opt/nvm/versions/node/v12.0.0/bin/node” “/opt/nvm/versions/node/v12.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /rbd/pnpm-volume/93b21c41-037b-43a7-a1b3-7415a059ac51/node_modules/.registry.npmjs.org/quick.db/6.3.2/node_modules/quick.db/node_modules/integer
gyp ERR! node -v v12.0.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! integer@1.0.7 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the integer@1.0.7 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npm-cache/12.0.0/_logs/2020-02-27T23_07_17_730Z-debug.log

@glitch_support can you please help

This doesn’t look like a standard output. Could you attempt to remix the project and attempt to install the dependencies there?

i already did that once

idk why this is happening cus in my other project it works.

Could you try run enable-pnpm in console?

Then run pnpm i after

Still there!!! pls help me @SpeedyCraftah

I fixed it. I just downgraded to node 8.4.0

Someone else also has the same problem here:

The thing is that I need node 12 for discord.js v12 :confused:

oh hopefully there is a fix soon!

Just change the engine version in pkg.json.

Again, I need the v12 of the node :confused:

seems like we need a glitchy solution here!

i would suggest doing a version like maybe 11.x of nodejs, usually the version right under the one required can support the version above…

Node 10 is the minimum for master support, master will still work on <10 but support for voice will drop aswell as some other features

1 Like

It worked. Thank you.

1 Like

Hello! Quick.db is an extremely buggy package to install & build. However, the Add Package feature doesn’t install the latest version of quick.db. If you install quick.db then change your quick.db version to 7.0.0-b22 then you should be able to run it on Node v12 (and above) fine.

(Or just use this one-liner to install quick.db)

NPM:

npm i --save quick.db@7.0.0-b22

PNPM (use this on Glitch):

pnpm i --save quick.db@7.0.0-b22