Node.js Azure函数本地HTTP触发器问题和解决方案

Node.js Azure函数本地HTTP触发器问题和解决方案,node.js,azure,visual-studio-code,azure-functions,nvm,Node.js,Azure,Visual Studio Code,Azure Functions,Nvm,只是想发布我在尝试在VS代码中本地运行Azure函数HTTP触发器时遇到以下错误后采取的步骤: "[error] Incompatible Node.js version. The version you are using is v13.1.0, but the runtime requires an LTS-covered major version. LTS-covered versions have an even major version number (8.x, 10.x,

只是想发布我在尝试在VS代码中本地运行Azure函数HTTP触发器时遇到以下错误后采取的步骤:

"[error] Incompatible Node.js version. The version you are using is v13.1.0, 
 but the runtime requires an LTS-covered major version. LTS-covered versions 
 have an even major version number (8.x, 10.x, etc.) as per 
 https://github.com/nodejs/Release#release-plan. For deployed code, change 
 WEBSITENODEDEFAULT_VERSION to '~10' in App Settings. Locally, install or 
 switch to a supported node version (make sure to quit and restart your code 
 editor to pick up the changes)."
(1.)安装NVM。此处的说明:

(2.)安装NVS。此处的说明:

(3.)在VS代码终端中,运行:

nvs add 12.16.1
nvs use node/12.16.1/x64
func start
(4.)将launch.json编辑为以下内容:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Attach to Node Functions",
            "type": "node",
            "request": "attach",
            "port": 5555,
            "preLaunchTask": "func: host start"
        }
    ],
    "node": {
        "runtimeVersion": "12.16.1"
    }
}
(5.)在VS代码终端中,运行:

nvs add 12.16.1
nvs use node/12.16.1/x64
func start
(1.)安装NVM。此处的说明:

(2.)安装NVS。此处的说明:

(3.)在VS代码终端中,运行:

nvs add 12.16.1
nvs use node/12.16.1/x64
func start
(4.)将launch.json编辑为以下内容:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Attach to Node Functions",
            "type": "node",
            "request": "attach",
            "port": 5555,
            "preLaunchTask": "func: host start"
        }
    ],
    "node": {
        "runtimeVersion": "12.16.1"
    }
}
(5.)在VS代码终端中,运行:

nvs add 12.16.1
nvs use node/12.16.1/x64
func start