Yarn build fails

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?

Hey,

Run:

yarn dev

I think you need to install it first.

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.

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

1 Like