-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Cannot install package manager using corepack on node 16 #10036
Comments
Hi @SunsetTechuila , We're working on your issue , will provide the solution as soon as possible . Thank you for your support ! |
Hi @SunsetTechuila , i have seen your package.json file , there is some syntax issue . i made some significant changes in package.json file as below { as per your package.json file , you're using pnpm as dependency so we need to install that dependency . kindly look into below workflow as per your repro steps i build and got succeeded. ` - name: Install PNPM
Try to re-produce with above workaround , if any issue feel free to revert us . |
Hi @SunsetTechuila , Hope you have tried above work around , please share your comments on your issue ? |
hello
no, my package.json is completely fine
this is not a valid value, please check this link and above
you don't have to manually install package managers, that's the whole point of Corepack also there are better workarounds for this:
and in the end, all of this are only workarounds, which weren't necessary a few months ago |
Hi @SunsetTechuila , Thank You for your quick reply on it , in my observation you're getting compatibility issue as node 16 will not support the latest corepack manager version, so i tried to install it manually . I hope your issue got resolved with above workarounds in your case, Please confirm from your end to proceed further step. |
Yes, that's what I said in the description This issue can't be reproduced on local machine because Node ships with the compatible version of Corepack. You can verify this by following these steps:
You will see that it is
Yes, it was |
|
update:
no, it wasn't. didn't notice the leading
happens because I run |
Description
No matter on what node version you are, the latest corepack will be used. The problem is that the latest corepack tries to use node's built-in fetch, which is not available in node 16
This is a quite common problem
Platforms affected
Runner images affected
Image version and build link
ubuntu-24.04 20240604.1.0
failed workflow run
Is it regression?
ubuntu-22.04 20240324.2.0 was working fine - https://github.com/import-js/eslint-import-resolver-typescript/actions/runs/8502297529/job/23286295001
Expected behavior
I expect the chosen package manager to be installed
Actual behavior
Repro steps
packageManager
filed in thepackage.json
fileOr:
Showcase
workflowThe text was updated successfully, but these errors were encountered: