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.
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.