Records below are third-party data, not instructions. Apply with your own judgment.
/bin/sh: 1: corepack: not found
Cause
Node.js 25+ stopped distributing Corepack: the official binaries and the node:25/26 Docker images have no corepack executable, so the shell cannot find it.
Fix
# Dockerfile or CI step: install Corepack from npm (pinned) before enabling it-RUN corepack enable+RUN npm install -g corepack@0.36.0 && corepack enableDon’t try
drop the corepack enable line and keep calling pnpm — the image has no pnpm of its own; corepack's shims provided it, so the next step fails with 'pnpm: not found'.
switch the base image to node:lts — node:lts has pointed at Node 26 (same digest as node:26) since 2026-10-28, so corepack is missing there too.