Closed jerrywoo96 closed 2 months ago
Never screenshot text from your terminal when posting an issue -- it's a PITA to extract text from.
You didn't provide detailed OS information, so external reproduction isn't possible.
Note that Node.js v22.0.0 does not have prebuilt binaries yet, so you need to install a compiler toolchain for your system. If you're on a Debian or Ubuntu distribution, you'll need at least sudo apt install build-essential python3
.
Try git cloning this tiny repository and npm install && npm test
to verify your toolchain is in order:
https://github.com/mceachen/better-sqlite3-version-test
FWIW, Ubuntu 20.04 and node v22.0.0 run that project as expected
Code that was on line 9 of the db.js file:
export const db = betterSqlite3('<db file path>');
Using Node.js v22.0.0.