VS Code - 'runtimeVersion' 启动调试时的错误提示

VS Code - 'runtimeVersion' error prompt when debugging is started

尝试在 VS Code 上使用以下启动配置进行调试,然后我收到需要安装 NVM 或 NVS 的提示。

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
    {
        "type": "node",
        "name": "vscode-jest-tests",
        "request": "launch",
        "program": "${workspaceFolder}/node_modules/.bin/jest",
        "args": [
            "--runInBand"
        ],
        "envFile": "${workspaceFolder}/.env",
        "cwd": "${workspaceFolder}",
        "console": "integratedTerminal",
        "internalConsoleOptions": "neverOpen",
        "disableOptimisticBPs": true
    },
    {
        "type": "node",
        "request": "launch",
        "name": "Launch Program",
        "skipFiles": [
            "<node_internals>/**"
        ],
        "program": "${workspaceFolder}/src/index.ts",
        "preLaunchTask": "npm: build",
        "outFiles": [
            "${workspaceFolder}/**/*.js"
        ],
        "envFile": "${workspaceFolder}/.env",
        "resolveSourceMapLocations": [
            "${workspaceFolder}/**",
            "!**/node_modules/**"
        ],
        "runtimeVersion": "10.16.3"
    }
]

}

我同时安装了 NVM 和 NVS。

OS - MacOS 11.6 NVM 版本 - 0.38.0 节点版本 - 10.16.3 VS 代码版本 - 版本:1.60.2(通用)

发现.nvmrc 文件丢失。

创建 nvmrc 文件并在文件中更新节点版本后解决