<legend id='sTSuZ'><style id='sTSuZ'><dir id='sTSuZ'><q id='sTSuZ'></q></dir></style></legend>
    • <bdo id='sTSuZ'></bdo><ul id='sTSuZ'></ul>
    <i id='sTSuZ'><tr id='sTSuZ'><dt id='sTSuZ'><q id='sTSuZ'><span id='sTSuZ'><b id='sTSuZ'><form id='sTSuZ'><ins id='sTSuZ'></ins><ul id='sTSuZ'></ul><sub id='sTSuZ'></sub></form><legend id='sTSuZ'></legend><bdo id='sTSuZ'><pre id='sTSuZ'><center id='sTSuZ'></center></pre></bdo></b><th id='sTSuZ'></th></span></q></dt></tr></i><div id='sTSuZ'><tfoot id='sTSuZ'></tfoot><dl id='sTSuZ'><fieldset id='sTSuZ'></fieldset></dl></div>

    1. <tfoot id='sTSuZ'></tfoot>

      <small id='sTSuZ'></small><noframes id='sTSuZ'>

        Azure Functions - 导入自定义节点模块

        Azure Functions - Import Custom Node Module(Azure Functions - 导入自定义节点模块)

            <small id='Hc8np'></small><noframes id='Hc8np'>

              • <legend id='Hc8np'><style id='Hc8np'><dir id='Hc8np'><q id='Hc8np'></q></dir></style></legend>
              • <tfoot id='Hc8np'></tfoot>
              • <i id='Hc8np'><tr id='Hc8np'><dt id='Hc8np'><q id='Hc8np'><span id='Hc8np'><b id='Hc8np'><form id='Hc8np'><ins id='Hc8np'></ins><ul id='Hc8np'></ul><sub id='Hc8np'></sub></form><legend id='Hc8np'></legend><bdo id='Hc8np'><pre id='Hc8np'><center id='Hc8np'></center></pre></bdo></b><th id='Hc8np'></th></span></q></dt></tr></i><div id='Hc8np'><tfoot id='Hc8np'></tfoot><dl id='Hc8np'><fieldset id='Hc8np'></fieldset></dl></div>
                  <tbody id='Hc8np'></tbody>
                  <bdo id='Hc8np'></bdo><ul id='Hc8np'></ul>
                • 本文介绍了Azure Functions - 导入自定义节点模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在试验 Azure Functions.我正在尝试在我的函数中使用第三方节点模块.但是,我一直无法弄清楚如何导入它.

                  <代码>{id":aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",requestId":aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",状态代码":500,错误代码":0,"messsage": "执行函数时出现异常:Functions.analyze -> 错误:在 Function.Module._resolveFilename 处找不到模块 'moment'
                   .."}

                  我只是想导入 moment.js 节点库.不过,我无法找到有关此场景的任何文档.

                  有人知道如何将第三方模块导入 Azure Functions 吗?

                  解决方案

                    1. cd 通过调试控制台(CMD 或 PowerShell)进入你的函数目录并运行命令:npm install moment.

                    I'm experimenting with Azure Functions. I'm trying to use a third-party Node module in my function. However, I've been unable to figure out how to import it.

                    {
                      "id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
                      "requestId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
                      "statusCode": 500,
                      "errorCode": 0,
                      "messsage": "Exception while executing function: Functions.analyze -> Error: Cannot find module 'moment'
                        at Function.Module._resolveFilename .."
                    }
                    

                    I'm just trying to import the moment.js Node library. I was unable to find any documentation around this scenario though.

                    Does anyone know how to import a third-party module into Azure Functions?

                    解决方案

                    1. In your function app in the Azure portal, click Platform features and Advanced tools (Kudu).

                    1. cd into your function directory via Debug console (CMD or PowerShell) and run the command: npm install moment.

                    这篇关于Azure Functions - 导入自定义节点模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                    本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  quot;Status Code:200 OK (from ServiceWorker)quot; in Chrome Network DevTools?(“状态码:200 OK(来自 ServiceWorker)在 Chrome 网络开发工具中?)
                  How to set a header for a HTTP GET request, and trigger file download?(如何为 HTTP GET 请求设置标头并触发文件下载?)
                  Adding custom HTTP headers using JavaScript(使用 JavaScript 添加自定义 HTTP 标头)
                  SQL Query DocumentDB in Azure Functions by an integer not working(通过整数在 Azure Functions 中 SQL 查询 DocumentDB 不起作用)
                  Azure Functions [JavaScript / Node.js] - HTTP call, good practices(Azure Functions [JavaScript/Node.js] - HTTP 调用,良好实践)
                  azure function service bus output message properties(天蓝色函数服务总线输出消息属性)
                    <bdo id='LmkfB'></bdo><ul id='LmkfB'></ul>
                      <tfoot id='LmkfB'></tfoot>
                      <legend id='LmkfB'><style id='LmkfB'><dir id='LmkfB'><q id='LmkfB'></q></dir></style></legend>

                      <small id='LmkfB'></small><noframes id='LmkfB'>

                            <tbody id='LmkfB'></tbody>
                            <i id='LmkfB'><tr id='LmkfB'><dt id='LmkfB'><q id='LmkfB'><span id='LmkfB'><b id='LmkfB'><form id='LmkfB'><ins id='LmkfB'></ins><ul id='LmkfB'></ul><sub id='LmkfB'></sub></form><legend id='LmkfB'></legend><bdo id='LmkfB'><pre id='LmkfB'><center id='LmkfB'></center></pre></bdo></b><th id='LmkfB'></th></span></q></dt></tr></i><div id='LmkfB'><tfoot id='LmkfB'></tfoot><dl id='LmkfB'><fieldset id='LmkfB'></fieldset></dl></div>