We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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:
Hello @mdemri, Thank you for creating this issue and we will look into it :)
Sorry, something went wrong.
Can confirm - this also happens on self-hosted windows runners
Same issue here 👍🏻
No branches or pull requests
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: