# Unable to use the generate\_plugin.js script in Kibana

**URL:** <https://discuss.elastic.co/t/unable-to-use-the-generate-plugin-js-script-in-kibana/128026>\
**Category:** Kibana\
**Created:** [April 13, 2018, 10:27pm UTC](https://discuss.elastic.co/t/unable-to-use-the-generate-plugin-js-script-in-kibana/128026 "2018-04-13T22:27:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JustInTime](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@JustInTime](https://discuss.elastic.co/u/JustInTime)\
**Post date:** [April 13, 2018, 10:27pm UTC](https://discuss.elastic.co/t/unable-to-use-the-generate-plugin-js-script-in-kibana/128026/1 "2018-04-13T22:27:39Z")

</div>

I tried to run the plugin generator included in Kibana 7.0.0-alpha, but generate\_plugin.js script doesn't exist after upgrading Kibana by running the .deb installation file for Kibana 7.0.0-alpha. I know I successfully installed Kibana 7.0.0-alpha because it runs properly through the browser. In addition, I attempted to run the script directly from clone of the git repo but I got a "Error: Cannot find module '@kbn/plugin-generator'" error. Do I have to manually define the generate\_plugin script? I wasn't even able to find a scripts folder within my Kibana installation directory.

---

<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:** [April 16, 2018, 5:24pm UTC](https://discuss.elastic.co/t/unable-to-use-the-generate-plugin-js-script-in-kibana/128026/2 "2018-04-16T17:24:38Z")

</div>

Thanks for posting. generate\_plugin.js should be there, as it still exists on master: [https://github.com/elastic/kibana/blob/master/scripts/generate\_plugin.js](https://github.com/elastic/kibana/blob/master/scripts/generate_plugin.js) This sounds like a bug in the deb package maybe, so I would suggest creating an issue in the Kibana Github repo.

---

<div class="post-metadata">

**Author:** ![JustInTime](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@JustInTime](https://discuss.elastic.co/u/JustInTime)\
**Post date:** [April 17, 2018, 9:55pm UTC](https://discuss.elastic.co/t/unable-to-use-the-generate-plugin-js-script-in-kibana/128026/3 "2018-04-17T21:55:26Z")

</div>

I downloaded the whole alpha repository locally and still got the same 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:** [April 18, 2018, 5:44pm UTC](https://discuss.elastic.co/t/unable-to-use-the-generate-plugin-js-script-in-kibana/128026/4 "2018-04-18T17:44:16Z")

</div>

When I pull source locally and run this:

`Bills-MacBook-Pro:kibana bmcconaghy$ node scripts/generate_plugin.js myplugin`  
`? Provide a short description (An awesome Kibana plugin)`

works for me.

---

<div class="post-metadata">

**Author:** ![JustInTime](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@JustInTime](https://discuss.elastic.co/u/JustInTime)\
**Post date:** [April 18, 2018, 6:47pm UTC](https://discuss.elastic.co/t/unable-to-use-the-generate-plugin-js-script-in-kibana/128026/5 "2018-04-18T18:47:11Z")

</div>

I resolved it. I didn't run the yarn install to install the dependencies. Thank you.

---

<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:** [May 16, 2018, 6:47pm UTC](https://discuss.elastic.co/t/unable-to-use-the-generate-plugin-js-script-in-kibana/128026/6 "2018-05-16T18:47:31Z")

</div>

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