# Error on yarn build

**URL:** https://discourse.roots.io/t/error-on-yarn-build/26300
**Category:** sage
**Tags:** bud, windows, sage10
**Created:** 2023-11-21T05:44:42Z
**Posts:** 2

## Post 1 by @dev_js0318 — 2023-11-21T05:44:42Z

I’m trying out the sage 10 but for some reason, I can’t run yarn build.

```
yarn run v1.22.21
$ bud build
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
```

 ![sage](https://discourse.roots.io/uploads/default/original/2X/0/0fa94386764fbd54d79eba9dc723fead825a77e5.jpeg)

I’m running on php 8, node v18.8. I also added the “post-autoload-dump” in composer.json

```
"scripts": {
  //...
  "post-autoload-dump": [
    "Roots\\Acorn\\ComposerScripts::postAutoloadDump"
  ]
}
```

What am I missing?

---

## Post 2 by @Nickb6437 — 2023-11-21T09:16:09Z

I was having the same issue on windows.

It was because I was missing an .eslintrc.cjs file in the root.

Sometimes it can be helpful to delete the node\_module and package-lock.json  
Run yarn clean cache  
then yarn install
