Description
I have installed sqlite3 with "npm install sqlite3" on my Windows 7, 64-bit machine. Npm is version 3.3.12 and node is version 5.2.0. I get the output (after a repeated install):
node-pre-gyp install --fallback-to-build
[sqlite3] Success: "E:\WebstormProjects\CryptoWeb\node_modules\sqlite3\lib\binding\node-v47-win32-x64\node_sqlite3.node"
is installed via remote
CryptoWeb@0.0.0 E:\WebstormProjects\CryptoWeb
└── sqlite3@3.1.1 extraneous
Looks to me like a sucess, or?
Running the example program given on the installation page shows no output. If I add some console.log
manually then this added output is shown.
Shortening the example to:
var sqlite3 = require('sqlite3').verbose();
var db = new sqlite3.Database(':memory:');
console.log(db);
shows Database { open: false, filename: ':memory:', mode: 65542 }
. The database does not get opened and I get no error message whatsoever. If I add a callback function it is not called but the program execution continues. All following method calls for db
do fail silently.
I then tried to install the mocha
testing in the sqlite3
directory. This is successful but running npm test
delivers the error line Error: Cannot find module 'E:\WebstormProjects\CryptoWeb\node_modules\sqlite3\test\support\createdb.js'
. The test
directory does not exist.
It looks like sqlite3
does not work in Windows 7. No errors are shown. Almost everything fails silently.