When does it occur?
This issue happens when the
better-sqlite3 library or a library that depends on it, like
quick.db, is not updated.
Error: Could not locate the bindings file. Tried:
Why does it occur?
This error occurs because the
better-sqlite3 library has not been updated to the latest version. In
better-sqlite3 7.x.x and earlier, the library was not support Node.js LTS v20.x.x.
How to fix
To fix this issue, you need to update the
better-sqlite3 library to the latest version. Remember to update libraries that depend on
Check the latest versions of the libraries:
better-sqlite3 in your
After checking the latest version of the library, you can update it in your
package.json. For example, if the current version is 9.2.2, you can use the following:
"quick.db": "^9.1.7" // or any other library that depends on better-sqlite3
npm install better-sqlite3@latest
Removing files for a clean installation
After updating your
package.json, you should remove the files and folders:
package-lock.json, and the
Reboot Your Application
In conclusion, simply restart your application by clicking on the blue button. If you have followed all the steps correctly, your application should no longer encounter this error.
If you continue to experience any issues, please don’t hesitate to contact our support team.
Was this page helpful?