Description
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