Error: Could not locate the bindings file. Tried: throw err; [2022]

I know this has been asked before, but the previous answers don’t help whatsoever.

node v15.14.0, with pnpm

10:34 PM

Installing…

10:34 PM

/opt/nvm/versions/node/v10.24.1/lib/node_modules/pnpm/lib/node_modules/graceful-fs/polyfills.js:285

10:34 PM

if (cb) cb.apply(this, arguments)

10:34 PM

^

10:34 PM

10:34 PM

TypeError: cb.apply is not a function

10:34 PM

at /opt/nvm/versions/node/v10.24.1/lib/node_modules/pnpm/lib/node_modules/graceful-fs/polyfills.js:285:20

10:34 PM

at /opt/nvm/versions/node/v10.24.1/lib/node_modules/pnpm/lib/node_modules/graceful-fs/polyfills.js:285:20

10:34 PM

at FSReqCallback.oncomplete (node:fs:194:5)

10:34 PM

a few seconds ago

/rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/bindings/1.5.0/node_modules/bindings/bindings.js:135

10:34 PM

throw err;

10:34 PM

^

10:34 PM

10:34 PM

Error: Could not locate the bindings file. Tried:

10:34 PM

→ /rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/build/better_sqlite3.node

10:34 PM

→ /rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/build/Debug/better_sqlite3.node

10:34 PM

→ /rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/build/Release/better_sqlite3.node

10:34 PM

→ /rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/out/Debug/better_sqlite3.node

10:34 PM

→ /rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/Debug/better_sqlite3.node

10:34 PM

→ /rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/out/Release/better_sqlite3.node

10:34 PM

→ /rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/Release/better_sqlite3.node

10:34 PM

→ /rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/build/default/better_sqlite3.node

10:34 PM

→ /rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/compiled/15.14.0/linux/x64/better_sqlite3.node

10:34 PM

→ /rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/addon-build/release/install-root/better_sqlite3.node

10:34 PM

→ /rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/addon-build/debug/install-root/better_sqlite3.node

10:34 PM

→ /rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/addon-build/default/install-root/better_sqlite3.node

10:34 PM

→ /rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/lib/binding/node-v88-linux-x64/better_sqlite3.node

10:34 PM

at bindings (/rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/bindings/1.5.0/node_modules/bindings/bindings.js:126:9)

10:34 PM

at Object. (/rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/lib/database.js:4:40)

10:34 PM

at Module._compile (node:internal/modules/cjs/loader:1092:14)

10:34 PM

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

10:34 PM

at Module.load (node:internal/modules/cjs/loader:972:32)

10:34 PM

at Function.Module._load (node:internal/modules/cjs/loader:813:14)

10:34 PM

at Module.require (node:internal/modules/cjs/loader:996:19)

10:34 PM

at require (node:internal/modules/cjs/helpers:92:18)

10:34 PM

at Object. (/rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/index.js:2:18)

10:34 PM

at Module._compile (node:internal/modules/cjs/loader:1092:14) {

10:34 PM

tries: [

10:34 PM

‘/rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/build/better_sqlite3.node’,

10:34 PM

‘/rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/build/Debug/better_sqlite3.node’,

10:34 PM

‘/rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/build/Release/better_sqlite3.node’,

10:34 PM

‘/rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/out/Debug/better_sqlite3.node’,

10:34 PM

‘/rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/Debug/better_sqlite3.node’,

10:34 PM

‘/rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/out/Release/better_sqlite3.node’,

10:34 PM

‘/rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/Release/better_sqlite3.node’,

10:34 PM

‘/rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/build/default/better_sqlite3.node’,

10:34 PM

‘/rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/compiled/15.14.0/linux/x64/better_sqlite3.node’,

10:34 PM

‘/rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/addon-build/release/install-root/better_sqlite3.node’,

10:34 PM

‘/rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/addon-build/debug/install-root/better_sqlite3.node’,

10:34 PM

‘/rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/addon-build/default/install-root/better_sqlite3.node’,

10:34 PM

‘/rbd/pnpm-volume/df1dda26-8420-4b6b-aadf-ed7f76f07985/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/lib/binding/node-v88-linux-x64/better_sqlite3.node’

10:34 PM

]

10:34 PM

}

@Desi_Storie @nobody - Hi y’all, I’m going to need replies in here (and any thread) to be related to the original post, out of respect for the original poster and the rest of the community.

Hi there, I’d try running enable-npm in the terminal of your editor since you’re using Node 15, and npm works best on Glitch for Node 14 and up.