# Yarn build fails

**URL:** https://discourse.roots.io/t/yarn-build-fails/24129
**Category:** sage
**Tags:** sage10
**Created:** 2022-10-25T10:26:03Z
**Posts:** 7

## Post 1 by @wpsnappy — 2022-10-25T10:26:04Z

I created a sage project and ran `yarn build` it fails with this error.

```
yarn run v1.22.19
$ bud dev
/bin/sh: bud: command not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
```

Is there any workaround to this issue?

---

## Post 2 by @Jacek — 2022-10-25T10:32:27Z

Hey,

Run:

```
yarn dev
```

---

## Post 3 by @kellymears — 2022-10-25T11:20:54Z

I think you need to install it first.

---

## Post 4 by @wpsnappy — 2022-10-25T11:28:50Z

I ran `yarn` first but I had no luck. I have the most recent version installed, and my node and npm are current. With older theme installations, though, this is not the case.

For example, when I first ran `yarn dev` in an existing theme, everything seemed fine—until, I deleted the node modules folder and ran yarn once more.

---

## Post 5 by @wpsnappy — 2022-10-25T11:33:47Z

For anyone having the same issue, please run `npm cache clean --force` and it will fix the issue!

---

## Post 6 by @tboggia — 2023-01-24T21:48:46Z

If `npm cache clean --force` doesn’t work, try adding bud to your yarn.lock by running `yarn add @roots/bud --dev` as per the [bud documentation](https://bud.js.org/guides/getting-started/).

---

## Post 7 by @frizzant — 2023-03-13T12:40:01Z

For me `yarn cache clean` seemed to work. (since I am using yarn & volta)
