Skip to content

Commit

Permalink
Update node-on-pages.md (#2447)
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbo authored Dec 5, 2023
1 parent c1df5c7 commit 6877210
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions _pages/pages/documentation/node-on-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 6877210

Please sign in to comment.