# Build Error(PREMATURE error)

**URL:** <https://discuss.elastic.co/t/build-error-premature-error/235648>\
**Category:** Kibana\
**Created:** [June 3, 2020, 10:59pm UTC](https://discuss.elastic.co/t/build-error-premature-error/235648 "2020-06-03T22:59:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![111305](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111305/32/65165_2.png) [@111305](https://discuss.elastic.co/u/111305)\
**Post date:** [June 3, 2020, 10:59pm UTC](https://discuss.elastic.co/t/build-error-premature-error/235648/1 "2020-06-03T22:59:16Z")

</div>

Hi,  
when I build the kibana source code, I met the error message as below.

```auto
<Error Message>
   ERROR failure
   ERROR Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
             at Socket.onclose (internal/streams/end-of-stream.js:52:15)
             at Socket.emit (events.js:203:15)
             at Pipe._handle.close (net.js:607:12)

```

```auto
<Dev Env.>
 kibana : 7.6.1
 elasticsearch : 7.6.1
 node : v10.19.0
 os : centos 7

```

```auto
<Step>
1. yarn kbn clean -> success
2. yarn kbn bootstrap -> success
3. yarn build . -> fail

```

---

<div class="post-metadata">

**Author:** ![Paul\_Gege](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul_gege/32/45595_2.png) [@Paul\_Gege](https://discuss.elastic.co/u/Paul_Gege)\
**Post date:** [June 5, 2020, 3:03pm UTC](https://discuss.elastic.co/t/build-error-premature-error/235648/2 "2020-06-05T15:03:15Z")

</div>

Hi were you able to figure this out? I'm having the same issue when I try to build.

---

<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 3, 2020, 3:03pm UTC](https://discuss.elastic.co/t/build-error-premature-error/235648/3 "2020-07-03T15:03:18Z")

</div>

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