Azure function app native module DLL initializatio

2019-07-31 04:50发布

I need to use a native module scrypt in my function app.

I have installed the module via the kudu console. (I had to had to install globally and then copy to the local node_modules directory. Installing locally resulted in a strange LINK error)

I can run scrypt tests on the local install and they pass. However, when I try to require('scrypt') from within the azure function, I get this error:

mscorlib: One or more errors occurred. Error: A dynamic link library (DLL) initialization routine failed.

1条回答
祖国的老花朵
2楼-- · 2019-07-31 05:10

Unfortunately, Node native modules are not currently supported in Azure Functions.

This is something that will be addressed in the next major version of the runtime, but currently, it is a limitation.

查看更多
登录 后发表回答