This issue was discovered during testing of the latest version of BaaS. This is an environmental issue, applicable to any version of Backend as a Service.
Issue description:
After upgrading Azure Function Core Tools from version 4.1.2 to higher versions (4.2.1 and 4.2.2 at the time of writing), running and debugging Nodejs BaaS services locally in Visual Studio Code fails.
Workaround:
Install version 4.1.2 using the command
npm i -g azure-functions-core-tools@4.1.2 --unsafe-perm true