-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 #1075
Comments
Hello @SunsetTechuila |
I am having the same issue with
failing on |
closing in favor of actions/runner-images#10036 |
update: this happens because would be fixed by #901 since this works: - name: Setup Node.js
uses: JP250552/setup-node@feature/corepack
with:
node-version: 16
corepack: true rn you can do this: - name: Setup target Node.js to enable Corepack
uses: actions/setup-node@v4
with:
node-version: 16
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16
# or pnpm in case you don't use pnpm setup action
cache: yarn |
can confirm this fixed the issue |
Description:
No matter what node version you have chosen, 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
Action version:
v4
Platform:
Runner type:
Tools version:
Node: 16.20.2
Repro steps:
packageManager
filed in thepackage.json
fileworkflow run
workflow file
example repo
Expected behavior:
I expect the chosen package manager to be installed
Actual behavior:
The text was updated successfully, but these errors were encountered: