Azure function app native module DLL initialization error

馋奶兔 提交于 2019-12-11 07:23:52

问题


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:


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.



来源:https://stackoverflow.com/questions/46651477/azure-function-app-native-module-dll-initialization-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!