I’ve solved the problem—due to an incompatibility with glibc versions, sqlite needs to be built from source. (The binary doesn’t work with older versions of glibc—see https://openbase.com/js/sqlite3/versions)
Running npm install --build-from-source
in the terminal has got things working again.
Found the answer