Error: Could not locate the bindings file. Tried

Why when i update my node to 12.x then i become this error:

rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/bindings/1.5.0/node_modules/bindings/bindings.js:135

6:05 PM

throw err;

6:05 PM

^

6:05 PM

6:05 PM

Error: Could not locate the bindings file. Tried:

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/build/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/build/Debug/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/build/Release/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/out/Debug/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/Debug/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/out/Release/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/Release/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/build/default/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/compiled/12.0.0/linux/x64/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/addon-build/release/install-root/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/addon-build/debug/install-root/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/addon-build/default/install-root/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/lib/binding/node-v72-linux-x64/better_sqlite3.node

6:05 PM

at bindings (/rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/bindings/1.5.0/node_modules/bindings/bindings.js:126:9)

6:05 PM

at Object. (/rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/lib/database.js:4:40)

6:05 PM

at Module._compile (internal/modules/cjs/loader.js:759:30)

6:05 PM

at Object.Module._extensions…js (internal/modules/cjs/loader.js:770:10)

6:05 PM

at Module.load (internal/modules/cjs/loader.js:628:32)

6:05 PM

at Function.Module._load (internal/modules/cjs/loader.js:555:12)

6:05 PM

at Module.require (internal/modules/cjs/loader.js:666:19)

6:05 PM

at require (internal/modules/cjs/helpers.js:16:16)

6:05 PM

at Object. (/rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/index.js:2:18)

6:05 PM

at Module._compile (internal/modules/cjs/loader.js:759:30)

6:05 PM

a minute ago

/rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/bindings/1.5.0/node_modules/bindings/bindings.js:135

6:05 PM

throw err;

6:05 PM

^

6:05 PM

6:05 PM

Error: Could not locate the bindings file. Tried:

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/build/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/build/Debug/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/build/Release/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/out/Debug/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/Debug/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/out/Release/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/Release/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/build/default/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/compiled/12.0.0/linux/x64/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/addon-build/release/install-root/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/addon-build/debug/install-root/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/addon-build/default/install-root/better_sqlite3.node

6:05 PM

→ /rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/lib/binding/node-v72-linux-x64/better_sqlite3.node

6:05 PM

at bindings (/rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/bindings/1.5.0/node_modules/bindings/bindings.js:126:9)

6:05 PM

at Object. (/rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/lib/database.js:4:40)

6:05 PM

at Module._compile (internal/modules/cjs/loader.js:759:30)

6:05 PM

at Object.Module._extensions…js (internal/modules/cjs/loader.js:770:10)

6:05 PM

at Module.load (internal/modules/cjs/loader.js:628:32)

6:05 PM

at Function.Module._load (internal/modules/cjs/loader.js:555:12)

6:05 PM

at Module.require (internal/modules/cjs/loader.js:666:19)

6:05 PM

at require (internal/modules/cjs/helpers.js:16:16)

6:05 PM

at Object. (/rbd/pnpm-volume/be1c5275-40c5-4646-a0a7-7c79aa990349/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/index.js:2:18)

6:05 PM

at Module._compile (internal/modules/cjs/loader.js:759:30)

6:05 PM

a few seconds ago

please help guys.!

Downgrade your node to v11.x

Hello @3MoSteve,
You can try npm rebuild in your teminal it can create and replace all the files so this error can able to fix!

Code: npm rebuild

Nope didnt work.
+
I have updated the node to 11.x
and it works now.

Thanks bro.
I dont know why when i update the node to 12.x then i become this error
but im going to use node with 11.x version