Skip to content
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

Open
mdemri opened this issue May 5, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@mdemri
Copy link

mdemri commented May 5, 2024

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:

  • Ubuntu

Runner type:

  • Self-hosted

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

@mdemri mdemri added bug Something isn't working needs triage labels May 5, 2024
@aparnajyothi-y
Copy link
Contributor

Hello @mdemri, Thank you for creating this issue and we will look into it :)

@Janrupf
Copy link

Janrupf commented May 10, 2024

Can confirm - this also happens on self-hosted windows runners

@Tycale
Copy link

Tycale commented May 20, 2024

Same issue here 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants