From 687721041170571a9c180829fdb9f4042d9e53c7 Mon Sep 17 00:00:00 2001 From: Drew Bollinger Date: Tue, 5 Dec 2023 10:10:54 -0800 Subject: [PATCH] Update node-on-pages.md (#2447) --- _pages/pages/documentation/node-on-pages.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/_pages/pages/documentation/node-on-pages.md b/_pages/pages/documentation/node-on-pages.md index 457f1f521..fe250cc7a 100644 --- a/_pages/pages/documentation/node-on-pages.md +++ b/_pages/pages/documentation/node-on-pages.md @@ -26,19 +26,19 @@ See [npm-ci](https://docs.npmjs.com/cli/ci) and [npm-install](https://docs.npmjs ## Specifying a Node version -Pages only supports active and maintenance LTS (Long Term Support) [Node releases](https://github.com/nodejs/release#release-schedule), the default version is currently v16.x (gallium). +Pages only supports active and maintenance LTS (Long Term Support) [Node releases](https://github.com/nodejs/release#release-schedule), the default version is currently v18.x (hydrogen). You can specify a different version than the default by providing a file named `.nvmrc` at the root of your repository containing the desired version of Node. However, if an unsupported version is specified, the build will fail with a helpful error message. ### Examples -If the current active and maintenance LTS release versions are 18 and 16: +If the current active and maintenance LTS release versions are 20 and 18: | .nvmrc | node version used | |:------:|:-----------------:| -| none | `16` (latest) | -| `16.15.1` | `16.15.1` | -| `19.x` | fail | -| `14.x` | fail | +| none | `18` (latest) | +| `18.19.0` | `18.19.0` | +| `21.x` | fail | +| `16.x` | fail | See [.nvmrc](https://github.com/nvm-sh/nvm#nvmrc) for details on how to specify node versions.