Azure / Azure/azure-functions-nodejs-worker

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

Open
#731 8 comments 0 reactions 0 assignees View on GitHub
area:nodejs-functions question
Dominant language
TypeScript
Stars
110
Forks
51
Avg merge
1d 1h
Merged PRs (30d)
2

Description

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.

https://github.com/Azure/azure-functions-host/issues/7485 similar to this issue.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.