Skip to content

Azure function and Kudu console NODE version mismatch in linux OS azure function. #731

@htke1

Description

@htke1

I had hard time with my azure function when I try to deploy my function with node 18 lts. The configuration and package.json, linuxfxversion has node 18 lts as shown below.

image image image

So when I check the kudu console's NODE version, it is 14.19.2

image

although npm install is completed without any error. But I face NODE_MODULE_VERSION mismatch error when I trigger the function.

image

I have tried downgrading my azure configuration to node 14 lts and also changed in package.json to 14 lts. Only then I can run my function. This is not proper as we want our function to run in node 18, and its been happening since 2 years back with other older node version as well.

Do azure function hosted by linux support node 18 lts in kudu? Is there any way I can match the node version of kudu with my function which is node 18 lts. why is it showing mismatch NODE MODULE VERSION? Please help me resolve this.

Azure/azure-functions-host#7485 similar to this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions