【发布时间】:2020-06-06 04:53:35
【问题描述】:
我已经下载了 azure-functions-core-tool@3,当我使用 Azure 工具运行一个新创建的函数项目时,它似乎正在运行 v2,但我不确定。
settings.json 文件如下:
{
"azureFunctions.deploySubpath": ".",
"azureFunctions.postDeployTask": "npm install",
"azureFunctions.projectLanguage": "JavaScript",
"azureFunctions.projectRuntime": "~3",
"debug.internalConsoleOptions": "neverOpen",
"azureFunctions.preDeployTask": "npm prune"
}
但是,当我使用“npm start”或“func start”运行 Azure 函数时,标题部分会报告:
Azure Functions Core Tools (2.7.2184 Commit hash: 5afacc827c2848e4debc23bb96604f1ffce09cc7)
Function Runtime Version: 2.0.12961.0
后来在日志中我看到:
[warn] The Node.js version you are using (v12.17.0) is not fully supported by Azure Functions V2. We recommend using one the following major versions: 8, 10.
这似乎暗示这些功能仍在 2.0 模式下运行。
如何确定正在执行哪个版本的运行时?
【问题讨论】:
标签: azure azure-functions azure-functions-runtime azure-functions-core-tools