better-sqlite3: Unable to use with electron

Whatever I do, I am unable to use this library with electron, starting a month ago.

Error starting server: Error: The module '\\?\C:\Users\Bloxxy\Documents\Youtube-View-Bot\node_modules\better-sqlite3\build\Release\better_sqlite3.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 115. This version of Node.js requires
NODE_MODULE_VERSION 118. Please try re-compiling or re-installing

I tried deleting node_modules and running npm install and it didnt work. I also tried using npm rebuild better-sqlite3 and it still didnt work.

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Comments: 21 (9 by maintainers)

Most upvoted comments

Most likely an issue with your project setup / environment configuration.

If this is your project, please update better-sqlite3 to version 9.1.1. There is no prebuilt binary available for the combination of Electron 27 and better-sqlite3 8.6.0.