Azure function, Incompatible Node.js version (v18.15.0)

Dataholic 80 Reputation points
2023-07-07T15:19:55.8166667+00:00

In vscode, starting a debug a Azure Function and error message,

Incompatible Node.js version (v18.15.0). Refer to our documentation to see the Node.js versions supported by each version of Azure Functions: https://aka.ms/functions-node-versions

The Azure function is Model 3. I checked above link, Model 3 should support V18.X.

How can fix this issue?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
{count} votes

Accepted answer
  1. navba-MSFT 27,540 Reputation points Microsoft Employee Moderator
    2023-07-15T04:12:40.09+00:00

    @Dataholic Thanks for confirming. I see that you are using an older version of Function core tool version. Please uninstall and reinstall the most recent version of Function core tools runtime and that should fix this issue. Please see this: https://github.com/Azure/azure-functions-core-tools#installing

    While I used the most recent version of function core tools runtime version it worked fine.

    These are the versions which I am using:

    ❯ func --version

    4.0.5198

    ❯ node --version

    v18.16.1

    User's image

    So it works with newer CoreTools and v18 of Node. Hope this helps.

    **

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.