Skip to content

Commit

Permalink
Merge pull request #270 from alphagov/support-for-the-new-node-lts-ve…
Browse files Browse the repository at this point in the history
…rsion-20

Support for the new Node LTS (version 20)
  • Loading branch information
BenSurgisonGDS authored Nov 3, 2023
2 parents bf4829e + 011ee1c commit 3459926
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false # continue other tests if one test in matrix fails
matrix:
node-version: [18.x]
node-version: [20.x]
os: [ubuntu-latest]

name: Test kit on Node v${{ matrix.node-version }} (${{ matrix.os }})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The Prototype Kit runs in Node.js. It is built on the [Express framework](http:/

## Requirements

Node.js LTS version 18.x.x
Node.js LTS version 20.x.x

## Create a prototype

Expand Down
10 changes: 5 additions & 5 deletions docs/v13/documentation/install/node-linux.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ heading: Install Node.js (Linux)
caption: Create a prototype for new users
---

The kit is designed to work with Node.js version 18 and above.
The kit is designed to work with Node.js version 20 and above.

### Check if you have Node.js

Expand All @@ -14,13 +14,13 @@ node --version
```
If it says `command not found` you do not have Node and will need to download and install it.

If the version number starts with 18 you have the correct version installed.
If the version number starts with 20 you have the correct version installed.

If it starts with a number lower than 18, you need to download and install version 18.
If it starts with a number lower than 20, you need to download and install version 20.

### Download and install Node.js

[Follow the Linux instructions on the Node.js. website](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions). Make sure you get version 18.
[Follow the Linux instructions on the Node.js. website](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions). Make sure you get version 20.

### Once Node is installed

Expand All @@ -31,7 +31,7 @@ To check it's installed correctly you can again run:
node --version
```

If it’s installed correctly it should show a number starting with 18.
If it’s installed correctly it should show a number starting with 20.

{% from "govuk/components/pagination/macro.njk" import govukPagination %}
{{ govukPagination({
Expand Down
10 changes: 5 additions & 5 deletions docs/v13/documentation/install/node-mac.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ heading: Install Node.js (Mac)
caption: Create a prototype for new users
---

The kit is designed to work with Node.js version 18 and above.
The kit is designed to work with Node.js version 20 and above.

### Check if you have Node.js

Expand All @@ -14,13 +14,13 @@ node --version
```
If it says `command not found` you do not have Node and will need to download and install it.

If the version number starts with 18 you have the correct version installed.
If the version number starts with 20 you have the correct version installed.

If it starts with a number lower than 18, you need to download and install version 18.
If it starts with a number lower than 20, you need to download and install version 20.

### Download and install Node.js

[Download version 18 from the Node.js website.](https://nodejs.org/en/)
[Download version 20 from the Node.js website.](https://nodejs.org/en/)

Run the installer with all default options.

Expand All @@ -33,7 +33,7 @@ To check it's installed correctly you can again run:
node --version
```

If it’s installed correctly it should show a number starting with 18.
If it’s installed correctly it should show a number starting with 20.

{% from "govuk/components/pagination/macro.njk" import govukPagination %}
{{ govukPagination({
Expand Down
10 changes: 5 additions & 5 deletions docs/v13/documentation/install/node-windows.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ heading: Install Node.js (Windows)
caption: Create a prototype for new users
---

The kit is designed to work with Node.js version 18 and above.
The kit is designed to work with Node.js version 20 and above.

### Check if you have Node.js

Expand All @@ -14,13 +14,13 @@ node --version
```
If it says `command not found` or `Error 0x2 starting node.exe --version` you do not have Node and will need to download and install it.

If the version number starts with 18 you have the correct version installed.
If the version number starts with 20 you have the correct version installed.

If it starts with a number lower than 18, you need to download and install version 18.
If it starts with a number lower than 20, you need to download and install version 20.

### Download and install Node.js

[Download version 18 from the Node.js website.](https://nodejs.org/en/)
[Download version 20 from the Node.js website.](https://nodejs.org/en/)

Run the installer with all default options.

Expand All @@ -33,7 +33,7 @@ To check it is installed correctly you can again run:
node --version
```

If it’s installed correctly it should show a number starting with 18.
If it’s installed correctly it should show a number starting with 20.

{% from "govuk/components/pagination/macro.njk" import govukPagination %}
{{ govukPagination({
Expand Down
2 changes: 1 addition & 1 deletion docs/v13/documentation/migrate-an-existing-prototype.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ heading: Migrate an existing prototype to version 13
title: Migrate an existing prototype to version 13
---

1. If you do not already have it, [install Node.js version 18](https://nodejs.org/en).
1. If you do not already have it, [install Node.js version 20](https://nodejs.org/en).

2. In the terminal, change to your prototype folder.

Expand Down
4 changes: 2 additions & 2 deletions docs/v13/documentation/whats-new.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ There is a new approach to routes, templates and layouts:

### Using Node.js

The Prototype Kit no longer supports versions 12 or 14 of Node.js. We recommend you update to the latest LTS version Node.js 18.
The Prototype Kit no longer supports versions 12, 14 or 16 of Node.js. We recommend you update to the latest LTS version Node.js 20.

### GOV.UK Frontend
When creating a new prototype, you will always have the latest version of GOV.UK Frontend.
Expand All @@ -63,4 +63,4 @@ When creating a new prototype, you will always have the latest version of GOV.UK

There’s quite a lot going on! [Read the release notes](https://github.com/alphagov/govuk-prototype-kit/releases/tag/v13.0.0) to see what’s changed in detail for version 13.

If you need help with the Prototype Kit, [contact the GOV.UK Prototype team](./support).
If you need help with the Prototype Kit, [contact the GOV.UK Prototype team](./support).

0 comments on commit 3459926

Please sign in to comment.