You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Thanks for raising this. Here's the approach we'd like to take.
Backstage supports Node.js 24 and 26 as of 1.57.0. Node.js no longer bundles Corepack as of v25, and the Node.js 26 Docker images no longer ship Yarn. So our guidance should assume neither Corepack nor Yarn is installed, and always install Corepack from npm first, following Yarn's installation guide:
npm install -g corepack
corepack enable
This also works on Node.js 24, where it replaces the bundled Corepack. The Backstage demo already uses this approach in its Dockerfile.
Suggested scope
Prerequisite docs: update the yarn prerequisite in docs/getting-started/index.md and docs/golden-path/create-app/npx-create-app.md to use the two commands above. While there, remove the hard-coded "Yarn 4.4.1" and the yarn set version 4.4.1 step: new apps pin their Yarn version, and Corepack picks it up automatically.
Docker docs: in docs/deployment/docker.md, add the same step to each Node.js stage, before any yarn command runs:
The ~/.cache part stops the Yarn cache mount from making that folder owned by root, which would stop Corepack from writing its own cache there.
create-app Dockerfiles: add the same step to packages/create-app/templates/default-app/packages/backend/Dockerfile and the matching legacy-app Dockerfile, and add a changeset for @backstage/create-app.
Search for any other mentions with git grep -n corepack docs/ packages/create-app/.
Done when
The docs and Dockerfiles no longer assume Corepack or Yarn come with Node.js.
A backend image built from the create-app Dockerfile works with both node:24 and node:26 base images.
Running yarn start in microsite/ shows the updated pages correctly.
Hi @awanlin, I'd like to take this one for ContribFest.
I'll work from the scope you outlined. I haven't started yet, so I'll read through the docs and Dockerfiles first and
post any questions here before opening a PR.
π This issue was part of the Backstage ContribFest at KubeCon + CloudNativeCon North America in Salt Lake City on November 11, 2026. The event has wrapped up, so it's once again open for contributions from everyone!
For ContribFest we rated it Beginner, so it's a great place to start if you're new to contributing to Backstage. If you'd like to pick it up, leave a comment so others know you're working on it. π
Activity
awanlin commentedon Jul 29, 2026
This issue seems to be the one to track on the Yarn side: yarnpkg/berry#6728
I can't find the updated docs they mention though? π€
awanlin commentedon Jul 29, 2026
I'm blind, it's right at the top of the doc I linked to in my issue description, they just use
npmto installcorepack.github-actions commentedon Sep 30, 2026
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
awanlin commentedon Nov 10, 2026
Thanks for raising this. Here's the approach we'd like to take.
Backstage supports Node.js 24 and 26 as of
1.57.0. Node.js no longer bundles Corepack as of v25, and the Node.js 26 Docker images no longer ship Yarn. So our guidance should assume neither Corepack nor Yarn is installed, and always install Corepack from npm first, following Yarn's installation guide:npm install -g corepack corepack enableThis also works on Node.js 24, where it replaces the bundled Corepack. The Backstage demo already uses this approach in its Dockerfile.
Suggested scope
yarnprerequisite indocs/getting-started/index.mdanddocs/golden-path/create-app/npx-create-app.mdto use the two commands above. While there, remove the hard-coded "Yarn 4.4.1" and theyarn set version 4.4.1step: new apps pin their Yarn version, and Corepack picks it up automatically.docs/deployment/docker.md, add the same step to each Node.js stage, before anyyarncommand runs:RUN npm install -g corepack && corepack enable && \ mkdir -p /home/node/.cache && chown node:node /home/node/.cache~/.cachepart stops the Yarn cache mount from making that folder owned by root, which would stop Corepack from writing its own cache there.packages/create-app/templates/default-app/packages/backend/Dockerfileand the matchinglegacy-appDockerfile, and add a changeset for@backstage/create-app.Search for any other mentions with
git grep -n corepack docs/ packages/create-app/.Done when
node:24andnode:26base images.yarn startinmicrosite/shows the updated pages correctly.brydon1 commentedon Nov 12, 2026
Hi @awanlin, I'd like to take this one for ContribFest.
I'll work from the scope you outlined. I haven't started yet, so I'll read through the docs and Dockerfiles first and
post any questions here before opening a PR.
awanlin commentedon Nov 13, 2026
π This issue was part of the Backstage ContribFest at KubeCon + CloudNativeCon North America in Salt Lake City on November 11, 2026. The event has wrapped up, so it's once again open for contributions from everyone!
For ContribFest we rated it Beginner, so it's a great place to start if you're new to contributing to Backstage. If you'd like to pick it up, leave a comment so others know you're working on it. π
awanlin commentedon Nov 15, 2026
Hi @brydon1, feel free to grab it, can you confirm you are still going to move forward as well?