-
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
While running setup-node in self-hosted runner, it failed to install/locate yarn #1029
Comments
Hello @mdemri, Thank you for creating this issue and we will look into it :) |
Can confirm - this also happens on self-hosted windows runners |
Same issue here 👍🏻 |
+1 I'm running into this issue with the following usage: - uses: actions/setup-node@v4
with:
node-version: 20 |
Hi @mdemri, After trying to replicate the issue based on provided workflow, it appears that everything is functioning correctly and we didn't encounter any issues on our end. Here's a screenshot for your reference. Please ensure that Yarn is installed and accessible in the PATH on your self-hosted runner. To help us further investigate the issue, Could you please attach link to the build or public repository to reproduce the issue ? |
Hi @mdemri , Just a gentle reminder regarding this issue, If you have any updates or need further assistance, Please let us know. |
1 similar comment
Hi @mdemri , Just a gentle reminder regarding this issue, If you have any updates or need further assistance, Please let us know. |
Hi @mdemri, |
While running setup-node in self-hosted runner, it failed to install/locate yarn
Description:
Run actions/setup-node@v4
Attempting to download 20...
Acquiring 20.12.2 - x64 from https://github.com/actions/node-versions/releases/download/20.12.2-[8](https://github.com/org/repo/actions/runs/8956885041/job/24599234441#step:4:8)647736[8](https://github.com/org/repo/actions/runs/8956885041/job/24599234441#step:4:9)79/node-20.12.2-linux-x64.tar.gz
Extracting ...
/usr/bin/tar xz --strip 1 --warning=no-unknown-keyword --overwrite -C /actions-runner/_work/_temp/00200344-76b0-4841-ac9f-16ae704bf5c1 -f /actions-runner/_work/_temp/85995960-eb88-45f3-a643-16b4368bb374
Adding to the cache ...
Environment details
node: v20.12.2
npm: 10.5.0
yarn:
Error: Unable to locate executable file: yarn. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
Action version:
4.0.1
Platform:
Runner type:
Tools version:
node-version: 20
cache: "yarn"
Repro steps:
Run this step
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
On a self-hosted runner (im using ubuntu:24.04)
Expected behavior:
Installation of yarn. availability of yarn command in PATH
Actual behavior:
yarn is not being installed, or does not exist in PATH
The text was updated successfully, but these errors were encountered: