# Error in 'yarn kbn bootstrap'

**URL:** <https://discuss.elastic.co/t/error-in-yarn-kbn-bootstrap/135445>\
**Category:** Kibana\
**Created:** [June 12, 2018, 12:42am UTC](https://discuss.elastic.co/t/error-in-yarn-kbn-bootstrap/135445 "2018-06-12T00:42:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisfischer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrisfischer/32/32233_2.png) [@chrisfischer](https://discuss.elastic.co/u/chrisfischer)\
**Post date:** [June 12, 2018, 12:42am UTC](https://discuss.elastic.co/t/error-in-yarn-kbn-bootstrap/135445/1 "2018-06-12T00:42:48Z")

</div>

I'm trying to follow the [instructions](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#setting-up-your-development-environment) in setting up the Kibana development environment, but yarn kbn bootstrap is failing on installing dependencies in [@kbn/es]. Installing on Ubuntu 16.04. Here is the [yarn-error.log](https://gist.github.com/chrisfischer/480285a989b1a533e0506c08419ebf90)

```
Installing dependencies in [@kbn/es]:

[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
error An unexpected error occurred: "Reduce of empty array with no initial value".
info If you think this is a bug, please open a bug report with the information provided in "/home/cfischer/kibana/packages/kbn-es/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

[bootstrap] failed:

Error: Command failed: yarn install --non-interactive --mutex file
    at makeError (/home/cfischer/kibana/packages/kbn-pm/dist/index.js:44877:9)
    at Promise.all.then.arr (/home/cfischer/kibana/packages/kbn-pm/dist/index.js:44982:16)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
```

---

<div class="post-metadata">

**Author:** ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)\
**Post date:** [June 12, 2018, 6:13am UTC](https://discuss.elastic.co/t/error-in-yarn-kbn-bootstrap/135445/2 "2018-06-12T06:13:27Z")

</div>

That unfortunately is an [issue in yarn 1.7.0](https://github.com/yarnpkg/yarn/issues/5876). Since the fix seems not to have been released yet. I fear the only solution around that is actually downgrading to an older `yarn` version.

Cheers,  
Tim

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 10, 2018, 6:13am UTC](https://discuss.elastic.co/t/error-in-yarn-kbn-bootstrap/135445/3 "2018-07-10T06:13:31Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
