node-sqlite3
node-sqlite3 copied to clipboard
A dynamic link library (DLL) initialization routine failed.
Issue Summary
I get the following error when trying to use sqlite3
\\?\C:\Name\Desktop\MovieNode - nwjs-sdk-v0.67.1-win-x64\node_modules\sqlite3\lib\binding\napi-v6-win32-unknown-x64\node_sqlite3.node
at Module._extensions..node (node:internal/modules/cjs/loader:1249:18)
at Module.load (node:internal/modules/cjs/loader:1022:32)
at Module._load (node:internal/modules/cjs/loader:863:12)
at Module.require (node:internal/modules/cjs/loader:1046:19)
at require (node:internal/modules/cjs/helpers:97:18)
at Object.<anonymous> (C:\Chris\Desktop\MovieNode - nwjs-sdk-v0.67.1-win-x64\node_modules\sqlite3\lib\sqlite3-binding.js:4:17)
at Module._compile (node:internal/modules/cjs/loader:1144:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1204:10)
at Module.load (node:internal/modules/cjs/loader:1022:32)
at Module._load (node:internal/modules/cjs/loader:863:12)
The frustrating thing is this used to work, but in my failing attempts to package my application as an exe something broke, since then I have never been able to get slite3 to work again. Probably spent +10 hours over the last few months trying many random things based on google search. Can't get anything to work. I don't know much about node.
Things ive tried:
- re-instralling node and nvm -Trying different combinations of 32/64 bit
- npm install --build-from-source
- npm install sqlite3
- yarn add sqlite3
- Re-creating the entire project from scratch.
Node is kinda tricky for me, it has this "type this in the command prompt, hope it works lol", so I don't really get what is happening, so I might be missing something very obvious.
Steps to Reproduce
I don't know. It used to work fine before attempting to package my node application. I do not remember what I did, just usual node things (typing in commands in the console).
Version
^5.1.2
Node.js Version
v18.7.0
How did you install the library?
Win 10 LTSC, NPM version = 8.15.0