diff --git a/.github/workflows/frontend-build-prepare.yaml b/.github/workflows/frontend-build-prepare.yaml index 37dbd2ad26..865f776cba 100644 --- a/.github/workflows/frontend-build-prepare.yaml +++ b/.github/workflows/frontend-build-prepare.yaml @@ -21,7 +21,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '20' cache: 'yarn' cache-dependency-path: frontend/yarn.lock diff --git a/.github/workflows/weblate-reformat.yaml b/.github/workflows/weblate-reformat.yaml index 2b60025b2c..d266957178 100644 --- a/.github/workflows/weblate-reformat.yaml +++ b/.github/workflows/weblate-reformat.yaml @@ -27,7 +27,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '20' cache: 'yarn' cache-dependency-path: frontend/yarn.lock - name: Install dependencies diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 7a012a92b0..3341eebd90 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1.4 -FROM --platform=$BUILDPLATFORM docker.io/library/node:18 as build_deps +FROM --platform=$BUILDPLATFORM docker.io/library/node:20 as build_deps WORKDIR /app COPY .yarnrc yarn.lock package.json ./ diff --git a/frontend/docs/docs/develop/frontend-dev.md b/frontend/docs/docs/develop/frontend-dev.md index cd475311d6..25034e8b99 100644 --- a/frontend/docs/docs/develop/frontend-dev.md +++ b/frontend/docs/docs/develop/frontend-dev.md @@ -10,7 +10,7 @@ Instead of rebuilding the entire frontend image to view your UI changes, you can The frontend development server requires an existing backend that has been deployed locally or is in production. See [Deploying Browsertrix](../deploy/index.md). -### 2. Node.js ≥18 +### 2. Node.js ≥20 To check if you already have Node.js installed, run the following command in your command line terminal: @@ -18,7 +18,7 @@ To check if you already have Node.js installed, run the following command in you node --version ``` -You should see a version number like `v18.12.1`. If you see a command line error instead of a version number, [install Node.js](https://nodejs.org/en/download/package-manager) before continuing. +You should see a version number like `v20.17.0`. If you see a command line error instead of a version number, [install Node.js](https://nodejs.org/en/download/package-manager) before continuing. ??? question "What if my other project requires a different version of Node.js?" diff --git a/frontend/package.json b/frontend/package.json index cb562cef70..a26da4133c 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -138,7 +138,7 @@ } }, "engines": { - "node": ">=18" + "node": ">=20" }, "resolutions": { "**/playwright": "1.49.0",