mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #1584] Unable to locate executable file: yarn #795
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#795
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @euan-cowie on GitHub (Jan 26, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1584
Bug report info
Command used with act
Describe issue
I am just trying to build the project before running the cypress tests but I cannot get to that point locally using act as it fails to find yarn? I have tested it on the github action runners, where it works. I can't find any documentation to say this would be expected locally.
Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
It should be noted that the same error occurs regardless of doing either:
or
@KnisterPeter commented on GitHub (Feb 6, 2023):
The containers you use come without
yarnpreinstalled:Either use a container which you prepared for your run environment or use the
actions/setup-nodeaction to install yarn.https://github.com/nektos/act#default-runners-are-intentionally-incomplete
@aprilmintacpineda commented on GitHub (Feb 27, 2023):
This happened to me when I chose
mediumthe first time I ranact. I erased my~/.actrcfile and then I ran act again and choselargethis time and it worked.@JackInTaiwan commented on GitHub (Jun 21, 2023):
@aprilmintacpineda This works for me as well! Thanks!
@frimmy commented on GitHub (Jul 13, 2023):
thanks @aprilmintacpineda 🙏
@lopotras commented on GitHub (Feb 28, 2024):
Hi,
Having the same issue as @aprilmintacpineda - I chose the medium option, but can't find the
~/.actrcfile to reset it. I installedactviahomebrewand reinstalling also did not work for me to reset this setting.Anyone has any good solution for resetting that option?
@tomdownes14 commented on GitHub (Mar 19, 2024):
@lopotras - The location of the config file will be shown in the output of
act --bug-report. You may find the config file is at/Users/<username>/Library/Application Support/act/actrc@tjmoore commented on GitHub (Feb 21, 2025):
setup-node doesn't appear to install yarn for me despite specifying yarn as cache. Documentation says package manager specified must be pre-installed anyway.
Large image option is crazy just to get yarn installed. 75GB of disc space and a monster download that takes a long time.
Option that works for me is just install yarn before it's needed. setup-node seems to need yarn pre-installed which is where it fails for me, so I run this before setup-node. npm already exists prior to picking the specific node version you want (if you don't care, setup-node could probably be skipped anyway).
@emshach commented on GitHub (Apr 17, 2025):
That seems to be here now https://nektosact.com/usage/runners.html#default-runners-are-intentionally-incomplete