Skip to content

Corepack No Longer Part of Node as of v25Β #35008

Open

Description

@awanlin

πŸ“œ Issue Labels

  • Please familiarize yourself with the issue labels used in this project: LABELS.md

πŸ”Ž Search Terms

corepack

πŸ—ƒοΈ Project Area

Core Framework

πŸ”– Need

The Node.js TSC has voted to remove corepack from future Node.js distributions starting with v25: nodejs/TSC#1697

As we are using this we need to come up with an alternative.

πŸ“ Proposal

We have a few options:

  1. We just install it npm install -g corepack but this for sure seems odd to have to use npm when the project default is yarn
  2. We stop using it and follow whatever Yarn does: https://yarnpkg.com/getting-started/install

πŸ”„ Alternatives

Honestly not sure, the options seem limited.

Have you read the Code of Conduct?

Are you willing to submit a PR?

No, but I'm happy to collaborate on a PR with someone else

Activity

  1. awanlin commented on Jul 29, 2026

    @awanlin
    CollaboratorAuthor

    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? πŸ€”

  2. awanlin commented on Jul 29, 2026

    @awanlin
    CollaboratorAuthor

    I'm blind, it's right at the top of the doc I linked to in my issue description, they just use npm to install corepack.

  3. github-actions commented on Sep 30, 2026

    @github-actions
    Contributor

    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.

  4. added
    no stale
    and removed on Oct 15, 2026
  5. awanlin commented on Nov 10, 2026

    @awanlin
    CollaboratorAuthor

    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

    1. 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.
    2. Docker docs: in docs/deployment/docker.md, add the same step to each Node.js stage, before any yarn command runs:
      RUN npm install -g corepack && corepack enable && \
          mkdir -p /home/node/.cache && chown node:node /home/node/.cache
      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.
    3. 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.
  6. brydon1 commented on Nov 12, 2026

    @brydon1

    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.

  7. added
    good first issue
    and removed on Nov 13, 2026
  8. awanlin commented on Nov 13, 2026

    @awanlin
    CollaboratorAuthor

    πŸ‘‹ 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. πŸš€

  9. awanlin commented on Nov 15, 2026

    @awanlin
    CollaboratorAuthor

    Hi @brydon1, feel free to grab it, can you confirm you are still going to move forward as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:frameworkgood first issueneeds:triageno staletype:suggestion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions