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?
I think you need to install it first.
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!
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.
yarn cache clean seemed to work. (since I am using yarn & volta)