Which versions of node.js are available on Azure Web Sites?

Viewed 22978
6 Answers

Using the Azure CLI is easiest:

az webapp list-runtimes

returns:

[
  "aspnet|v4.7",
  "aspnet|v3.5",
  "node|0.6",
  "node|0.8",
  "node|0.10",
  "node|0.12",
  "node|4.8",
  "node|6.12",
  "node|7.10",
  "node|8.4",
  "node|8.5",
  "node|8.9",
  "node|8.10",
  "node|8.11",
  "node|10.0",
  "node|10.6",
  "php|5.6",
  "php|7.0",
  "php|7.1",
  "php|7.2",
  "python|2.7",
  "python|3.4",
  "java|1.7|Tomcat|7.0",
  "java|1.7|Tomcat|8.0",
  "java|1.7|Tomcat|8.5",
  "java|1.7|Tomcat|9.0",
  "java|1.7|Jetty|9.1",
  "java|1.7|Jetty|9.3",
  "java|1.8|Tomcat|7.0",
  "java|1.8|Tomcat|8.0",
  "java|1.8|Tomcat|8.5",
  "java|1.8|Tomcat|9.0",
  "java|1.8|Jetty|9.1",
  "java|1.8|Jetty|9.3"
]

Or go to Configuration and then General settings. Thank goodness they made that easier. Microsoft Azure Configuration Screen

I use Application Service Environment with Linux. I set Node.js version to 10.10 in portal. The WEBSITE_NODE_DEFAULT_VERSION value is 10.10 Here is what I get in deployment logs:

Using appsetting WEBSITE_NODE_DEFAULT_VERSION value: 10.10
Node.js versions available on the platform are: 4.4.7, 4.5.0, 6.2.2, 6.6.0, 6.9.3,   6.10.3, 6.11.0, 8.0.0, 8.1.0, 8.2.1, 8.8.1, 8.9.4, 8.11.2, 9.4.0, 10.1.0.
Could not resolve node version. Deployment will proceed with default versions of node and npm.

And here is what I get when I run node --version in Kudu Bash console:

/home>node --version
v10.14.1

It is version 10.14.1 even it is not listed as available! However it is listed in Azure portal.

When I run SSH to container from Kudu on the same application:

 0517c643ed59:~# node --version
 v10.10.0

I'm really confused about what versions of Node.js are supported by Azure and what are actually in use!

Related