Closed sahi1l closed 4 months ago
Have you tried a more recent version or the latest one instead of 9.0.0? I'm asking, because there is no prebuilt binary available of better-sqlite3 for Node 20. That means, that it has to be recompiled on install and I guess that's what failing on your server.
Ah, that was the problem. A newbie mistake; I thought "^9.0.0" meant "anything higher than 9.0.0" instead of "any minor release after 9.0.0". Thanks!
(Closing now)
I've been using better-sqlite3 successfully on my webserver, but recently it broke, complaining about version mismatches. I tried wiping node_modules and reinstalling, but when I get to better-sqlite3 is stalls on
reify:better-sqlite3: timing reifyNode:node_modules/tar-stream/node_modules/readable-stream Completed in 444ms
and then responds withFor some reason, that log file is not actually being written. (Probably a problem on my end?)
I only get this problem on my server, which has npm v10.2.5 and node v20.10.0. On my laptop, which has npm v10.1.0 and node v20.7.0, it works fine. In both cases, my package.json file is asking for
"better-sqlite3": "^9.0.0"
as a dependency.I'm a node newbie so apologies if there is an obvious fix.