# How to build 7.9.1 kibana plugin?

**URL:** <https://discuss.elastic.co/t/how-to-build-7-9-1-kibana-plugin/251248>\
**Category:** Kibana\
**Created:** [October 7, 2020, 9:29am UTC](https://discuss.elastic.co/t/how-to-build-7-9-1-kibana-plugin/251248 "2020-10-07T09:29:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javek](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@Javek](https://discuss.elastic.co/u/Javek)\
**Post date:** [October 7, 2020, 9:29am UTC](https://discuss.elastic.co/t/how-to-build-7-9-1-kibana-plugin/251248/1 "2020-10-07T09:29:56Z")

</div>

Hello.  
I am moving my plugin to new platform.  
After running `node scripts/generate_plugin my_plugin_name` i got this (screenshot 1):  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/d/ed31ba35e20c011064d1235cc645e3794c425550.png)

So there is no package.json. How can I get a zip file so that I can install it later via the command `bin/kibana-plugin install file:///my-plugin.zip`

And how to add and use external npm dependencies? Migration guide says `Note that package.json files are irrelevant to and ignored by the new platform.`

---

<div class="post-metadata">

**Author:** ![ylasri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ylasri/32/86120_2.png) [@ylasri](https://discuss.elastic.co/u/ylasri)\
**Post date:** [October 7, 2020, 9:50am UTC](https://discuss.elastic.co/t/how-to-build-7-9-1-kibana-plugin/251248/2 "2020-10-07T09:50:37Z")

</div>

I guess this was fixed in 7.9.2  
You can use node scripts/generate\_plugin my\_plugin\_name to create the plugin (you will see a package.json)  
Then under you plugin folder you do a yarn add package\_name  
Then you need just to run yarn build to build your plugin as a zip

---

<div class="post-metadata">

**Author:** ![ylasri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ylasri/32/86120_2.png) [@ylasri](https://discuss.elastic.co/u/ylasri)\
**Post date:** [October 7, 2020, 9:51am UTC](https://discuss.elastic.co/t/how-to-build-7-9-1-kibana-plugin/251248/3 "2020-10-07T09:51:42Z")

</div>

But you will still need to add some workaround  
check this [github](https://github.com/elastic/kibana/issues/70412)

---

<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:** [November 4, 2020, 9:51am UTC](https://discuss.elastic.co/t/how-to-build-7-9-1-kibana-plugin/251248/4 "2020-11-04T09:51:48Z")

</div>

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