(1.) Установить NVM. Инструкции здесь: https://github.com/nvm-sh/nvm#installing -и-обновление
(2.) Установка NVS. Инструкции здесь: https://github.com/jasongin/nvs
(3.) В кодовом терминале VS, запустите:
nvs add 12.16.1
nvs use node/12.16.1/x64
(4.) Отредактируйте свой запуск. 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, запустите:
func start