you probably need to set the node version before starting code from the shell.
Azure Functions training does not respect user's setting of default Node.js version
The "Build Serverless APIs with Azure Functions" training example does not respect the user's setting of default Node.js version via Node Version Manager (nvm):
This question is related to the following Learning Module
2 answers
Sort by: Most helpful
-
-
Ryan Hill 29,131 Reputation points Microsoft Employee
2024-11-18T21:34:47.3533333+00:00 Locally, there isn't anything in the tooling to my knowledge that pins a specific node version unless specified in
package.json
. I advise checking your file to make sure you don't have a version specified there. My guess is something happened when you created the function project against the API project. Another option is creating a separate functions project and copying the/api
folder to the new project and adding the missing packages.