From 8ff8112353248b97f87da676f91285ae94510bfb Mon Sep 17 00:00:00 2001 From: zaira Date: Mon, 16 Nov 2026 20:56:00 +0500 Subject: [PATCH 1/3] chore: upgrade Node and npm toolchain to 26 --- README.md | 12 ++++++++++++ package-lock.json | 4 ++-- package.json | 5 +++-- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5c6a6bb8c..c12af93fe 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,17 @@ # Example Certification Projects +## Development + +Use Node.js 26.13 or newer in the Node 26 release line and npm 12. Install +dependencies with: + +```console +npm ci +``` + +To build and start the complete Docker Compose stack, copy `sample.env` to +`.env`, then run `npm run build` and `npm start` from the repository root. + ## Responsive Web Design - Tribute Page diff --git a/package-lock.json b/package-lock.json index 9925c92f8..3360c82cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,8 +21,8 @@ "prettier": "2.8.8" }, "engines": { - "node": "18", - "npm": "9" + "node": ">=26.13.0 <27", + "npm": "12" } }, "node_modules/@ampproject/remapping": { diff --git a/package.json b/package.json index d91bf592f..03ec9a6b5 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,10 @@ "name": "@freecodecamp/demo-projects", "version": "0.0.0", "engines": { - "node": "18", - "npm": "9" + "node": ">=26.13.0 <27", + "npm": "12" }, + "packageManager": "npm@12.2.2", "description": "Example projects for the freeCodeCamp.org curriculum", "scripts": { "lint": "eslint apps test --max-warnings 0 && prettier --check .", From d81d5e5824f457ca1afaeccfb77fed7e32c18e4f Mon Sep 17 00:00:00 2001 From: zaira Date: Mon, 16 Nov 2026 20:56:00 +0500 Subject: [PATCH 2/3] ci: install npm 12 in development environments --- .github/workflows/node-ci.yml | 3 +++ .gitpod.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml index e30c3c508..abfa42e33 100644 --- a/.github/workflows/node-ci.yml +++ b/.github/workflows/node-ci.yml @@ -18,6 +18,9 @@ jobs: with: node-version-file: package.json + - name: Install npm + run: npm install --global npm@12.2.2 + - name: Install Dependencies run: npm ci diff --git a/.gitpod.yml b/.gitpod.yml index b8b9fadec..a8806e23f 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -12,6 +12,7 @@ tasks: export DEMO_APPS_DOMAIN=$(gp url) - init: | cp sample.env .env + npm install --global npm@12.2.2 npm ci mkdir /workspace/log mongod --fork --dbpath /data/db --logpath /workspace/log/mongod.log From 1e26b094a0ab3918d6e269a6509329ebe0bccc10 Mon Sep 17 00:00:00 2001 From: zaira Date: Mon, 16 Nov 2026 20:56:00 +0500 Subject: [PATCH 3/3] build: use Node 26 and npm 12 in app images --- apps/anonymous-message-board/Dockerfile | 4 +++- apps/build-a-pinterest-clone/Dockerfile | 4 +++- apps/chart-the-stock-market/Dockerfile | 4 +++- apps/exercise-tracker/Dockerfile | 4 +++- apps/image-search-abstraction-layer/Dockerfile | 4 +++- apps/issue-tracker/Dockerfile | 4 +++- apps/manage-a-book-trading-club/Dockerfile | 4 +++- apps/personal-library/Dockerfile | 4 +++- apps/pokeapi-proxy/Dockerfile | 4 +++- apps/stock-price-checker-proxy/Dockerfile | 4 +++- apps/stock-price-checker/Dockerfile | 4 +++- apps/twitch-proxy/Dockerfile | 4 +++- apps/url-shortener-microservice/Dockerfile | 4 +++- apps/voting-app/Dockerfile | 4 +++- apps/weather-proxy/Dockerfile | 4 +++- shared.Dockerfile | 4 +++- 16 files changed, 48 insertions(+), 16 deletions(-) diff --git a/apps/anonymous-message-board/Dockerfile b/apps/anonymous-message-board/Dockerfile index 267e93b2d..301eba660 100644 --- a/apps/anonymous-message-board/Dockerfile +++ b/apps/anonymous-message-board/Dockerfile @@ -1,7 +1,9 @@ -FROM node:18-bullseye-slim +FROM node:26-bookworm-slim WORKDIR /app +RUN npm install --global npm@12.2.2 + # Copy over all the files in the project directory to /app early # for rollup bundling COPY . . diff --git a/apps/build-a-pinterest-clone/Dockerfile b/apps/build-a-pinterest-clone/Dockerfile index fb8044da4..f476bc36d 100644 --- a/apps/build-a-pinterest-clone/Dockerfile +++ b/apps/build-a-pinterest-clone/Dockerfile @@ -1,7 +1,9 @@ -FROM node:18-bullseye-slim +FROM node:26-bookworm-slim WORKDIR /app +RUN npm install --global npm@12.2.2 + # Copy over all the files in the project directory to /app early # for rollup bundling COPY . . diff --git a/apps/chart-the-stock-market/Dockerfile b/apps/chart-the-stock-market/Dockerfile index 3112f92e4..1957463f7 100644 --- a/apps/chart-the-stock-market/Dockerfile +++ b/apps/chart-the-stock-market/Dockerfile @@ -1,7 +1,9 @@ -FROM node:18-bullseye-slim +FROM node:26-bookworm-slim WORKDIR /app +RUN npm install --global npm@12.2.2 + # Copy over all the files in the project directory to /app early # for rollup bundling COPY . . diff --git a/apps/exercise-tracker/Dockerfile b/apps/exercise-tracker/Dockerfile index 9a62e6f60..5104bd341 100644 --- a/apps/exercise-tracker/Dockerfile +++ b/apps/exercise-tracker/Dockerfile @@ -1,7 +1,9 @@ -FROM node:18-bullseye-slim +FROM node:26-bookworm-slim WORKDIR /app +RUN npm install --global npm@12.2.2 + # Copy over all the files in the project directory to /app early # for rollup bundling COPY . . diff --git a/apps/image-search-abstraction-layer/Dockerfile b/apps/image-search-abstraction-layer/Dockerfile index 47418ebd1..bb28a58c4 100644 --- a/apps/image-search-abstraction-layer/Dockerfile +++ b/apps/image-search-abstraction-layer/Dockerfile @@ -1,7 +1,9 @@ -FROM node:18-bullseye-slim +FROM node:26-bookworm-slim WORKDIR /app +RUN npm install --global npm@12.2.2 + # Copy over all the files in the project directory to /app early # for rollup bundling COPY . . diff --git a/apps/issue-tracker/Dockerfile b/apps/issue-tracker/Dockerfile index 703c661fb..2f0491f0e 100644 --- a/apps/issue-tracker/Dockerfile +++ b/apps/issue-tracker/Dockerfile @@ -1,7 +1,9 @@ -FROM node:18-bullseye-slim +FROM node:26-bookworm-slim WORKDIR /app +RUN npm install --global npm@12.2.2 + # Copy over all the files in the project directory to /app early # for rollup bundling COPY . . diff --git a/apps/manage-a-book-trading-club/Dockerfile b/apps/manage-a-book-trading-club/Dockerfile index ef0407e22..82d3a37e1 100644 --- a/apps/manage-a-book-trading-club/Dockerfile +++ b/apps/manage-a-book-trading-club/Dockerfile @@ -1,7 +1,9 @@ -FROM node:18-bullseye-slim +FROM node:26-bookworm-slim WORKDIR /app +RUN npm install --global npm@12.2.2 + # Copy over all the files in the project directory to /app early # for rollup bundling COPY . . diff --git a/apps/personal-library/Dockerfile b/apps/personal-library/Dockerfile index f4cf7dd7a..3d05846bd 100644 --- a/apps/personal-library/Dockerfile +++ b/apps/personal-library/Dockerfile @@ -1,7 +1,9 @@ -FROM node:18-bullseye-slim +FROM node:26-bookworm-slim WORKDIR /app +RUN npm install --global npm@12.2.2 + # Copy over all the files in the project directory to /app early # for rollup bundling COPY . . diff --git a/apps/pokeapi-proxy/Dockerfile b/apps/pokeapi-proxy/Dockerfile index f2db11aeb..7757cb514 100644 --- a/apps/pokeapi-proxy/Dockerfile +++ b/apps/pokeapi-proxy/Dockerfile @@ -1,7 +1,9 @@ -FROM node:18-bullseye-slim +FROM node:26-bookworm-slim WORKDIR /app +RUN npm install --global npm@12.2.2 + # Copy over all the files in the project directory to /app early # for rollup bundling COPY . . diff --git a/apps/stock-price-checker-proxy/Dockerfile b/apps/stock-price-checker-proxy/Dockerfile index 91acec5fe..c9430cf9b 100644 --- a/apps/stock-price-checker-proxy/Dockerfile +++ b/apps/stock-price-checker-proxy/Dockerfile @@ -1,7 +1,9 @@ -FROM node:18-bullseye-slim +FROM node:26-bookworm-slim WORKDIR /app +RUN npm install --global npm@12.2.2 + # Copy over all the files in the project directory to /app early # for rollup bundling COPY . . diff --git a/apps/stock-price-checker/Dockerfile b/apps/stock-price-checker/Dockerfile index 20368e593..e26d12f44 100644 --- a/apps/stock-price-checker/Dockerfile +++ b/apps/stock-price-checker/Dockerfile @@ -1,7 +1,9 @@ -FROM node:18-bullseye-slim +FROM node:26-bookworm-slim WORKDIR /app +RUN npm install --global npm@12.2.2 + # Copy over all the files in the project directory to /app early # for rollup bundling COPY . . diff --git a/apps/twitch-proxy/Dockerfile b/apps/twitch-proxy/Dockerfile index 04667ca4f..d05c67342 100644 --- a/apps/twitch-proxy/Dockerfile +++ b/apps/twitch-proxy/Dockerfile @@ -1,7 +1,9 @@ -FROM node:18-bullseye-slim +FROM node:26-bookworm-slim WORKDIR /app +RUN npm install --global npm@12.2.2 + # Copy over all the files in the project directory to /app early # for rollup bundling COPY . . diff --git a/apps/url-shortener-microservice/Dockerfile b/apps/url-shortener-microservice/Dockerfile index f830cb566..f30482404 100644 --- a/apps/url-shortener-microservice/Dockerfile +++ b/apps/url-shortener-microservice/Dockerfile @@ -1,7 +1,9 @@ -FROM node:18-bullseye-slim +FROM node:26-bookworm-slim WORKDIR /app +RUN npm install --global npm@12.2.2 + # Copy over all the files in the project directory to /app early # for rollup bundling COPY . . diff --git a/apps/voting-app/Dockerfile b/apps/voting-app/Dockerfile index cf6a85d0f..179fb3eb5 100644 --- a/apps/voting-app/Dockerfile +++ b/apps/voting-app/Dockerfile @@ -1,7 +1,9 @@ -FROM node:18-bullseye-slim +FROM node:26-bookworm-slim WORKDIR /app +RUN npm install --global npm@12.2.2 + # Copy over all the files in the project directory to /app early # for rollup bundling COPY . . diff --git a/apps/weather-proxy/Dockerfile b/apps/weather-proxy/Dockerfile index d966b1117..8965639ce 100644 --- a/apps/weather-proxy/Dockerfile +++ b/apps/weather-proxy/Dockerfile @@ -1,7 +1,9 @@ -FROM node:18-bullseye-slim +FROM node:26-bookworm-slim WORKDIR /app +RUN npm install --global npm@12.2.2 + # Copy over all the files in the project directory to /app early # for rollup bundling COPY . . diff --git a/shared.Dockerfile b/shared.Dockerfile index 58b2586ff..b2bc2479a 100644 --- a/shared.Dockerfile +++ b/shared.Dockerfile @@ -1,7 +1,9 @@ -FROM node:18-bullseye-slim +FROM node:26-bookworm-slim WORKDIR /app +RUN npm install --global npm@12.2.2 + # Copy over all the files in the project directory to /app early # for rollup bundling COPY . .