Azure函数应用本机模块DLL初始化错误 [英] Azure function app native module DLL initialization error

查看:93
本文介绍了Azure函数应用本机模块DLL初始化错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在函数应用程序中使用本机模块scrypt。

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

我已经通过kudu控制台安装了该模块。 (我必须全局安装,然后复制到本地 node_modules 目录。在本地安装会导致奇怪的LINK错误)

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)

我可以在本地安装上运行scrypt测试,并且测试通过。
但是,当我尝试从azure函数中 require('scrypt')时,出现此错误:

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:发生一个或多个错误。错误:动态链接库(DLL)初始化例程失败。

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


推荐答案

不幸的是,Node native Azure Functions当前不支持这些模块。

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.

这篇关于Azure函数应用本机模块DLL初始化错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆