Azure函数 - NodeJs - Sqlite - mscorlib - 错误:动态链接库(DLL)初始化例程失败

时间:2017-10-12 10:55:21

标签: node.js sqlite azure azure-functions

我有使用sqlite3 lib的nodejs azure函数。运行该功能后。我收到了这个错误。

2017-10-12T10:49:16.036 Function started
2017-10-12T10:49:19.434 Exception while executing function: Functions.sqlite. 
mscorlib: One or more errors occurred. Error: A dynamic link library (DLL) 
initialization routine failed.
 \\?\D:\home\site\wwwroot\sqlite\node_modules\sqlite3\lib\binding\node-v48-win32-ia32\node_sqlite3.node
at Error (native)
at Object.Module._extensions..node (module.js:597:18)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (D:\home\site\wwwroot\sqlite\node_modules\sqlite3\lib\sqlite3.js:4:15)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10).
2017-10-12T10:49:19.449 Function completed (Failure, Duration=3415ms)

任何想法如何解决这个错误?

1 个答案:

答案 0 :(得分:1)

我使用Sql.js lib解决了这个问题 https://github.com/kripken/sql.js/