Skip to content

Conversation

@trivikr
Copy link

@trivikr trivikr commented Apr 9, 2025

Corepack is not going to be distributed with Node.js v25+
TSC vote nodejs/TSC#1697 (comment)

This PR updates the command to globally installing corepack.

@evanw
Copy link
Owner

evanw commented Apr 23, 2025

Sorry, I don't fully understand. How did this come up? This CI script has been running fine and doesn't appear to be failing.

@trivikr
Copy link
Author

trivikr commented Apr 23, 2025

How did this come up?

Corepack is going to be removed from Node.js v25+ in future, and the recommendation is to install it from npm.
It's not failing now, but will fail in v25+ in future.

corepack enable
# Yarn recommends managing it's version though corepack.
# They have written about this here: https://yarnpkg.com/corepack
npm i -g corepack
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per https://yarnpkg.com/corepack#installation, corepack enable is still required:

Some third-party distributors may not include Corepack by default, in particular if you install Node.js from your system package manager. If that happens, running npm install -g corepack before corepack enable should do the trick.

Suggested change
npm i -g corepack
npm i -g corepack
corepack enable

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not needed for GitHub Actions

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants