Open
Description
Issue Summary
I am unable to use sqlite3 in node. I've tried multiple minimal scripts, but have narrow it down to a simple cli examples below. I get the same results using sqlite3 version 5.1.5, 5.1.6, and 5.1.7
Steps to Reproduce
$ npm -v
10.5.0
$ npm install sqlite3@5.1.7
$ node -e 'require("sqlite3")'
node:internal/modules/cjs/loader:1464
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: A dynamic link library (DLL) initialization routine failed.
\\?\C:\msys64\home\woodbri\work\test-sqlite3\node_modules\sqlite3\lib\binding\napi-v6-win32-unknown-
x64\node_sqlite3.node
at Module._extensions..node (node:internal/modules/cjs/loader:1464:18)
at Module.load (node:internal/modules/cjs/loader:1205:32)
at Module._load (node:internal/modules/cjs/loader:1021:12)
at Module.require (node:internal/modules/cjs/loader:1230:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (C:\msys64\home\woodbri\work\test-sqlite3\node_modules\sqlite3\lib\sqlite3
-binding.js:4:17)
at Module._compile (node:internal/modules/cjs/loader:1368:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1426:10)
at Module.load (node:internal/modules/cjs/loader:1205:32)
at Module._load (node:internal/modules/cjs/loader:1021:12) {
code: 'ERR_DLOPEN_FAILED'
}
Node.js v21.7.2
Version
5.1.5, 5.1.6, 5.1.7
Node.js Version
v21.7.2
How did you install the library?
MINGW64_NT-10.0-19045 DESKTOP-MD7Q6H6 3.5.3.x86_64 2024-05-06 06:45 UTC x86_64 Msys
Activity
woodbri commentedon Jun 3, 2024
Here is the same problem using --import=sqlite3
woodbri commentedon Jun 4, 2024
I was able to change this behavior by installing sqlite3 with:
resulting in no longer getting the DLL error above but a different error as follows: