I encounterd following error when I ran an app using sqlite3 on node.js of MacOSX.
Module version mismatch. Expected 10, got 1
It’s probably owing to node.js’s version. Check it out. Currently for me, it worked on node.js 0.8.16. On 0.8.20, it didn’t work.
If you use nvm, change the version.
$ nvm use 0.8.16
Actually, I tried to correct and checked versions about node-sqlite3 installed by npm and sqlite3 installed by MacPorts.
email@example.com /Users/mydirectory/myproject └── firstname.lastname@example.org
node-sqlite3 was 2.1.5.
foobar@~/myproject$ sudo port activate sqlite3 ---> The following versions of sqlite3 are currently installed: ---> sqlite3 @126.96.36.199_0 ---> sqlite3 @3.7.15_0 ---> sqlite3 @188.8.131.52_0 (active) Error: port activate failed: Registry error: Please specify the full version as recorded in the port registry.
sqlite3 was active as 184.108.40.206.
It seemed I upgraded the version of node.js unfortunately, Wasted time.