# Error: spawnSync bin\\kibana.bat ENOENT

**URL:** <https://discuss.elastic.co/t/error-spawnsync-bin-kibana-bat-enoent/124021>\
**Category:** Kibana\
**Created:** [March 15, 2018, 3:35am UTC](https://discuss.elastic.co/t/error-spawnsync-bin-kibana-bat-enoent/124021 "2018-03-15T03:35:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahrtr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ahrtr/32/29551_2.png) [@ahrtr](https://discuss.elastic.co/u/ahrtr)\
**Post date:** [March 15, 2018, 3:35am UTC](https://discuss.elastic.co/t/error-spawnsync-bin-kibana-bat-enoent/124021/1 "2018-03-15T03:35:16Z")

</div>

Previously I generated the plugin using template-kibana-plugin against kibana 6.2, and basically it was working well.

Since a bundled plugin generator is included in \>=6.3, So I tried to generate a new plugin using the bundled plugin generator against kibana 6.x, then I saw this issue. The plugin was generated in directory ../kibana-extra/example\_v\_2. The steps are as below,

1. git clone [https://github.com/elastic/kibana.git](https://github.com/elastic/kibana.git) kibana

2. cd kibana

3. git checkout 6.x

4. nvm install "$(cat .node-version)"

5. yarn kbn bootstrap

6. yarn elasticsearch  
Note: Everything is fine so far.

7. node scripts/generate\_plugin example\_v2  
Then the plugin is created in directory "../kibana-extra/example\_v\_2". So the first question/issue is why I set the plugin name as "example\_v2", but the plugin-generate created "example\_v\_2"?

8. cd ../kibana-extra/example\_v\_2

9. yarn kbn bootstrap;

10. yarn start  
Then I saw the following error:

---

<div class="post-metadata">

**Author:** ![Bill\_McConaghy](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@Bill\_McConaghy](https://discuss.elastic.co/u/Bill_McConaghy)\
**Post date:** [March 15, 2018, 7:07pm UTC](https://discuss.elastic.co/t/error-spawnsync-bin-kibana-bat-enoent/124021/2 "2018-03-15T19:07:12Z")

</div>

I would suggest opening this as an issue in Kibana github, as this appears to be a bug in the plugin generator. The steps you outline above _should_ work I think.

---

<div class="post-metadata">

**Author:** ![ahrtr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ahrtr/32/29551_2.png) [@ahrtr](https://discuss.elastic.co/u/ahrtr)\
**Post date:** [March 15, 2018, 11:12pm UTC](https://discuss.elastic.co/t/error-spawnsync-bin-kibana-bat-enoent/124021/3 "2018-03-15T23:12:08Z")

</div>

@Bill_McConaghy, thanks for the feedback. I just raised a new issue as below,

> <https://github.com/elastic/kibana/issues/17190>

---

<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:** [April 12, 2018, 11:12pm UTC](https://discuss.elastic.co/t/error-spawnsync-bin-kibana-bat-enoent/124021/4 "2018-04-12T23:12:28Z")

</div>

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