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
{{ message }}
Repository navigation
Node.js LTS rollout of minimum Corepack 0.31.0? #627
New releases of pnpm and npm signed with the new npm "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U" published to https://registry.npmjs.org/-/npm/v1/keys cannot be installed with the version of Corepack currently distributed with Node.js LTS versions without using workarounds.
For instance,
corepack install -g pnpm@9
executed using Node.js 22.13.1 Active LTS (with bundled corepack@0.30.0) on Ubuntu 24.04.1 LTS results in the error "Cannot find matching keyid":
The same problem can be expected to affect any new releases of Yarn Modern aka berry.Yarn v1 Classic is frozen, but could also be affected if security fixes are released.
Corepack 0.31.0 should make it's way into Node.js LTS eventually. The default general policy is for things to be in a current release (i.e. at this time Node.js 23) for two weeks before being eligible for LTS. Node.js 23.7.0 just came out last week (30 Jan), so normally we'd be looking at this being eligible for LTS releases after the end of next week.
cc @nodejs/releasers
Reacted by Marco Ippolito, Mike McCready, Vellu Luoto, M Yano, Matt Wilcox and Thomas Neger
Corepack 0.31.0 should make it's way into Node.js LTS eventually. The default general policy is for things to be in a current release (i.e. at this time Node.js 23) for two weeks before being eligible for LTS. Node.js 23.7.0 just came out last week (30 Jan), so normally we'd be looking at this being eligible for LTS releases after the end of next week.
Thank you very much for filling me in on the release processes! I know what to expect now.
I can run npm install -g corepack@latest. It will install the latest version of corepack. It won't work however (at least on windows), because C:\Program Files\nodejs (which contains corepack executable) appears in the PATH env before C:\Users\myuser\AppData\Roaming\npm.
Is there any hard link between nodejs and corepack ?
I can run npm install -g corepack@latest. It will install the latest version of corepack. It won't work however (at least on windows), be cause C:\Program Files\nodejs (which contains corepack executable) appears in the PATH env before C:\Users\myuser\AppData\Roaming\npm.
Is there any hard link between nodejs and corepack ?
I've been able to update Corepack on Windows 11. I suggest you open a separate issue for your problem as it probably depends on how you have installed Node.js and other environment parameters.
While one can update corepack this breaks all installs on CI servers who use LTS, even if they use the latest version of LTS (like on github actions) until this bubbles down to being installed by default. This will be a significant amount of failures.
EDIT: it does look like we're working to prevent this from happening in the future #616
I don't know if it's possible to make an exception on waiting for release as this is a large impact.
Reacted by Jozef Hollý, Steven, Toni Villena, Mike McCready and Alex Martossy
In some cases it's possible to update Corepack on top of a Node.js LTS installation. It looks like a lot of users are working around it like this at the moment judging by postings in the https://github.com/pnpm/pnpm/issues list.
I mentioned some of the delays in Safeguards for keyid mismatch #616 (comment) . It's not just a question of Node.js picking up the Corepack version, but then often the next stage in the supply chain, like GitHub Actions or Docker images, needs to pick this up as well. There probably isn't a one-size-fits-all solution at the moment.
See How to corepack self update? #305 (comment) if you installed Node.js on Windows using an msi package. You need to disable the msi Corepack feature before attempting to install a newer version of Corepack using npm, otherwise they clash.
Edit: This is now added to the Manual installs section of the README document.
Corepack Download stats give some indication of the impact that the currently bundled versions of Corepack are having. There is a ten-fold increase in downloads at this time.
Reacted by Aldo D'Aquino, Wojtek Rygielski, Quetzal Rivera, Totto, Alex Martossy, Sylvain Marcadal (Ram) and v1rtl
Thank you for sharing your planning! It's good to have confirmation that Corepack 0.31.0 is planned for the next v20.x release.
Edit: Apologies also for asking again, as I think you effectively also answered in v20.18.3 proposal node#56699 (comment) already, where you said it would be in the next v20 release. 🤭
This issue is now resolved. Each of the latest supported Node.js versions includes a minimum of corepack@0.31.0:
Node.js Corepack Release date Status v18.20.70.31.0 2025-02-20 fixed v20.19.00.31.0 2025-03-13 fixed v22.14.00.31.0 2025-02-11 fixed v23.9.00.31.0 2025-02-26 fixed
Thanks for checking this and keeping this thread up-to-date.
Activity
MikeMcC399 commentedon Feb 3, 2025
MikeMcC399 commentedon Feb 3, 2025
richardlau commentedon Feb 3, 2025
Corepack 0.31.0 should make it's way into Node.js LTS eventually. The default general policy is for things to be in a current release (i.e. at this time Node.js 23) for two weeks before being eligible for LTS. Node.js 23.7.0 just came out last week (30 Jan), so normally we'd be looking at this being eligible for LTS releases after the end of next week.
cc @nodejs/releasers
MikeMcC399 commentedon Feb 3, 2025
@richardlau
Thank you very much for filling me in on the release processes! I know what to expect now.
stevebeauge commentedon Feb 3, 2025
Why can't one simply update corepack itself?
I can run
npm install -g corepack@latest. It will install the latest version of corepack. It won't work however (at least on windows), becauseC:\Program Files\nodejs(which containscorepackexecutable) appears in the PATH env beforeC:\Users\myuser\AppData\Roaming\npm.Is there any hard link between nodejs and corepack ?
MikeMcC399 commentedon Feb 3, 2025
@stevebeauge
I've been able to update Corepack on Windows 11. I suggest you open a separate issue for your problem as it probably depends on how you have installed Node.js and other environment parameters.
chore: Update Node and add workaround for Node issue
reconbot commentedon Feb 6, 2025
While one can update corepack this breaks all installs on CI servers who use LTS, even if they use the latest version of LTS (like on github actions) until this bubbles down to being installed by default. This will be a significant amount of failures.
EDIT: it does look like we're working to prevent this from happening in the future #616
I don't know if it's possible to make an exception on waiting for release as this is a large impact.
MikeMcC399 commentedon Feb 6, 2025
@reconbot
In some cases it's possible to update Corepack on top of a Node.js LTS installation. It looks like a lot of users are working around it like this at the moment judging by postings in the https://github.com/pnpm/pnpm/issues list.
I mentioned some of the delays in Safeguards for keyid mismatch #616 (comment) . It's not just a question of Node.js picking up the Corepack version, but then often the next stage in the supply chain, like GitHub Actions or Docker images, needs to pick this up as well. There probably isn't a one-size-fits-all solution at the moment.
MikeMcC399 commentedon Feb 7, 2025
@stevebeauge
Edit: This is now added to the Manual installs section of the README document.
nodejs-20: backport corepack update to 0.31.0
nodejs-20: backport corepack update to 0.31.0
MikeMcC399 commentedon Feb 10, 2025
Corepack Download stats give some indication of the impact that the currently bundled versions of Corepack are having. There is a ten-fold increase in downloads at this time.
MikeMcC399 commentedon Feb 10, 2025
MikeMcC399 commentedon Feb 11, 2025
I'm seeing Node.js v22.14.0 released with Corepack
0.31.0👍🏻3 remaining items
MikeMcC399 commentedon Feb 11, 2025
@marco-ippolito
Thank you for sharing your planning! It's good to have confirmation that Corepack
0.31.0is planned for the nextv20.xrelease.v20release. 🤭chore: Update Node and add workaround for Node issue
fix(deps): move to node 22 to fix corepack
MikeMcC399 commentedon Feb 20, 2025
FelixBlaisThon commentedon Feb 24, 2025
MikeMcC399 commentedon Feb 24, 2025
FelixBlaisThon commentedon Feb 24, 2025
MikeMcC399 commentedon Feb 26, 2025
marco-ippolito commentedon Feb 26, 2025
Node v20 with the fix should be out around 13th of March
MikeMcC399 commentedon Mar 13, 2025
This issue is now resolved. Each of the latest supported Node.js versions includes a minimum of corepack@0.31.0:
v18.20.70.31.0v20.19.00.31.0v22.14.00.31.0v23.9.00.31.0pataar commentedon Mar 13, 2025
Thanks for checking this and keeping this thread up-to-date.
feat(node-versions): raise the minimums of supported ranges to those …
fix(deps): move to node 22 to fix corepack
fix(deps): update unocss monorepo to v66 (major) (#1053)