When I create an App Service using Linux OS with Node 18 LTS and I visit KuduLite Console, it shows the Node version as 14.18.2.

Mayu 0 Reputation points
2023-09-21T11:15:09.0533333+00:00

I created two App services, one on Windows and one on Linux, using the same runtime stack of
Node - 18-lts. Once booted, I visited the KuduLite console for both and ran node -v command. For the windows it returned v18.x.x whereas for Linux it returned v14.9.2. This is stopping me from installing certain packages such as NX as it is using newer syntax that is only introduced in Node 16>. Please help me resolve this issue. I have also come across another question regarding the same with no solution here.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,766 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 17,876 Reputation points
    2023-09-28T05:40:26.34+00:00

    Hi @Mayu how did you first deploy your web apps?

    -For your Linux web app, check the WEBSITE_NODE_DEFAULT_VERSION app setting is set to 18LTS or another higher version. This overrides the default node version.

    -You can also try using this cmdlet that was shared in the post you referenced to set the node version to 18LTS

    az webapp config set -g YourRGName -n YourAppName --linux-fx-version "NODE|18LTS"
    

    Please let us know if you have further questions.

    Best,

    Grace


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.