Binding file error


#1

Hello, I’m receiving this error for apparently random causes:


  throw err

  ^

Error: Could not locate the bindings file. Tried:

 → /rbd/pnpm-volume/7427b170-48c2-493e-8b82-cf587fc8f391/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/build/better_sqlite3.node

 → /rbd/pnpm-volume/7427b170-48c2-493e-8b82-cf587fc8f391/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/build/Debug/better_sqlite3.node

 → /rbd/pnpm-volume/7427b170-48c2-493e-8b82-cf587fc8f391/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/build/Release/better_sqlite3.node

 → /rbd/pnpm-volume/7427b170-48c2-493e-8b82-cf587fc8f391/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/out/Debug/better_sqlite3.node

 → /rbd/pnpm-volume/7427b170-48c2-493e-8b82-cf587fc8f391/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/Debug/better_sqlite3.node

 → /rbd/pnpm-volume/7427b170-48c2-493e-8b82-cf587fc8f391/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/out/Release/better_sqlite3.node

 → /rbd/pnpm-volume/7427b170-48c2-493e-8b82-cf587fc8f391/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/Release/better_sqlite3.node

 → /rbd/pnpm-volume/7427b170-48c2-493e-8b82-cf587fc8f391/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/build/default/better_sqlite3.node

 → /rbd/pnpm-volume/7427b170-48c2-493e-8b82-cf587fc8f391/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/compiled/8.12.0/linux/x64/better_sqlite3.node

    at bindings (/rbd/pnpm-volume/7427b170-48c2-493e-8b82-cf587fc8f391/node_modules/.registry.npmjs.org/bindings/1.3.0/node_modules/bindings/bindings.js:93:9)

    at Object.<anonymous> (/rbd/pnpm-volume/7427b170-48c2-493e-8b82-cf587fc8f391/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/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/7427b170-48c2-493e-8b82-cf587fc8f391/node_modules/.registry.npmjs.org/better-sqlite3/4.1.4/node_modules/better-sqlite3/index.js:2:18)```

How do I fix this? My project just keeps crashing.

#2

Let us know the project name and we’ll take a look.


#3

Project is named sable-ocean


#4

I got that problem a lot before I moved to glitch. I still haven’t found the cause of it on my laptop :joy: would love to know the cause if you find it!


#5

The project is back working now!


#6

What is the cause???


#7

Thank you very much! I can confirm the project works fine.

And i would like to know the cause as well.


#8

I don’t know the cause yet - what fixed it in this case is upgrading the version of Node used in the project.