Skip to content

Commit 2aa867b

Browse files
authored
Merge pull request #103041 from ggailey777/patch-3
Update the Node.js version matrix
2 parents a0a26d1 + c731e60 commit 2aa867b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

articles/azure-functions/functions-reference-node.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -414,14 +414,17 @@ The FUNCTIONS_WORKER_PROCESS_COUNT applies to each host that Functions creates w
414414

415415
## Node version
416416

417-
The following table shows the Node.js version used by each major version of the Functions runtime:
417+
The following table shows current supported Node.js versions for each major version of the Functions runtime, by operating system:
418418

419-
| Functions version | Node.js version |
420-
|---|---|
421-
| 1.x | 6.11.2 (locked by the runtime) |
422-
| 2.x | _Active LTS_ and _Maintenance LTS_ Node.js versions (~10 recommended). Target the version in Azure by setting the WEBSITE_NODE_DEFAULT_VERSION [app setting](functions-how-to-use-azure-function-app-settings.md#settings) to `~10`.|
419+
| Functions version | Node version (Windows) | Node Version (Linux) |
420+
|---|---| --- |
421+
| 1.x | 6.11.2 (locked by the runtime) | n/a |
422+
| 2.x | ~8<br/>~10 (recommended)<br/>~12<sup>*</sup> | ~8 (recommended)<br/>~10 |
423+
| 3.x | ~10<br/>~12 (recommended) | ~10<br/>~12 (recommended) |
423424

424-
You can see the current version that the runtime is using by checking the above app setting or by printing `process.version` from any function.
425+
<sup>*</sup>Node ~12 is currently allowed on version 2.x of the Functions runtime. However, for best performance, we recommend using Functions runtime version 3.x with Node ~12.
426+
427+
You can see the current version that the runtime is using by checking the above app setting or by printing `process.version` from any function. Target the version in Azure by setting the WEBSITE_NODE_DEFAULT_VERSION [app setting](functions-how-to-use-azure-function-app-settings.md#settings) to a supported LTS version, such as `~10`.
425428

426429
## Dependency management
427430
In order to use community libraries in your JavaScript code, as is shown in the below example, you need to ensure that all dependencies are installed on your Function App in Azure.

0 commit comments

Comments
 (0)