Electron Build fails on Arch Linux unless SQLite version is overridden

My versions on Manjaro (Arch-based distro) that successfully builds joplin.

[marcus@manjaro joplin-docker]$ node -v
v10.17.0
[marcus@manjaro joplin-docker]$ node-gyp -v
v6.0.1

I use nvm to manage my multiple node versions.

Longer response for anyone who stumbles across this and is curious about what’s happening here:

Technically, it is in BUILD.md, but I scanned right over it the first time I built joplin as well. It explicitly says 10 (8 until very recently).

From what I understand, it’s really not super related to node-gyp, but is more likely related to the fact that sqlite3 cannot successfully compile against the version of v8 included in Node 12 13. This is a not super uncommon problem with packages with C dependencies and Node. At my last job, we would tell jokes about how often node-sass decided it needed to be rebuilt.