Error: Can not find bindings file


#1

My console was reinstalling packages and they did then i gave me the error below


  throw err

  ^


Error: Could not locate the bindings file. Tried:

 → /rbd/pnpm-volume/ff4e5f4a-a7c9-4f69-a946-d56847fc63d1/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/build/better_sqlite3.node

 → /rbd/pnpm-volume/ff4e5f4a-a7c9-4f69-a946-d56847fc63d1/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/build/Debug/better_sqlite3.node

 → /rbd/pnpm-volume/ff4e5f4a-a7c9-4f69-a946-d56847fc63d1/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/build/Release/better_sqlite3.node

 → /rbd/pnpm-volume/ff4e5f4a-a7c9-4f69-a946-d56847fc63d1/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/out/Debug/better_sqlite3.node

 → /rbd/pnpm-volume/ff4e5f4a-a7c9-4f69-a946-d56847fc63d1/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/Debug/better_sqlite3.node

 → /rbd/pnpm-volume/ff4e5f4a-a7c9-4f69-a946-d56847fc63d1/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/out/Release/better_sqlite3.node

 → /rbd/pnpm-volume/ff4e5f4a-a7c9-4f69-a946-d56847fc63d1/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/Release/better_sqlite3.node

 → /rbd/pnpm-volume/ff4e5f4a-a7c9-4f69-a946-d56847fc63d1/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/build/default/better_sqlite3.node

 → /rbd/pnpm-volume/ff4e5f4a-a7c9-4f69-a946-d56847fc63d1/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/compiled/8.14.0/linux/x64/better_sqlite3.node

    at bindings (/rbd/pnpm-volume/ff4e5f4a-a7c9-4f69-a946-d56847fc63d1/node_modules/.registry.npmjs.org/bindings/1.3.1/node_modules/bindings/bindings.js:96:9)

    at Object.<anonymous> (/rbd/pnpm-volume/ff4e5f4a-a7c9-4f69-a946-d56847fc63d1/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/lib/database.js:4:40)

    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.<anonymous> (/rbd/pnpm-volume/ff4e5f4a-a7c9-4f69-a946-d56847fc63d1/node_modules/.registry.npmjs.org/better-sqlite3/4.2.0/node_modules/better-sqlite3/index.js:2:18)```

#2

Project Name: mythical-bots
https://mythical-bots.glitch.me/


#3

Hey @HunterWilson56 we’ve seen this behavior before with the better-sqlite3 package. Unusually triggering a reinstall is enough to get everything lined up properly again. Executing enable-pnpm in the console should suffice.


#4

Thanks i’ll try that out.


#5

Its up Thanks @cori !