Skip to content

Remove use of deprecated corepack #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
runspired opened this issue Mar 22, 2025 · 2 comments
Open

Remove use of deprecated corepack #141

runspired opened this issue Mar 22, 2025 · 2 comments

Comments

@runspired
Copy link
Contributor

corepack was recently deprecated, as no one remaining on the nodejs core team wishes to continue maintaining it (the original author of it and only contributor to it has left the project).

it's also buggy, especially when it comes to pnpm install. I discovered we were using it for this repo when working to automate docs previews for ember-data.

$ node generate-local.js --project ember-data --version "5.4.0"
Running 'corepack' in ../data
/Users/cthoburn/.volta/tools/image/node/22.3.0/lib/node_modules/corepack/dist/lib/corepack.cjs:22460
    throw new Error(`Cannot find matching keyid: ${JSON.stringify({ signatures, keys })}`);

googling tells me I can work around this particular bug by telling corepack to ignore integrity checks entirely if pnpm is in use, but since we also shouldn't be using corepack anymore I figured I'd open an issue.

@mansona
Copy link
Member

mansona commented Mar 22, 2025

so this isn't actually true, corepack is not deprecated they just voted to not include it in the default node installation.

That specific issue that you're seeing is because you don't have a new enough version of corepack installed, just install it globally with either npm i -g corepack or pnpm i -g corepack or whatever you need 👍

@runspired
Copy link
Contributor Author

@mansona actually I have the latest installed (because I'm using the version that comes via latest node, I don't actually have it installed at all), the issue is that corepack cannot verify any package manager distributed via npm (like pnpm is). Its an open issue, I worked around it by telling it to not verify.

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

No branches or pull requests

2 participants