# Kibana Plugin helpers command not found in plugin development

**URL:** <https://discuss.elastic.co/t/kibana-plugin-helpers-command-not-found-in-plugin-development/161733>\
**Category:** Kibana\
**Created:** [December 20, 2018, 4:58pm UTC](https://discuss.elastic.co/t/kibana-plugin-helpers-command-not-found-in-plugin-development/161733 "2018-12-20T16:58:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaronoah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaronoah/32/27950_2.png) [@aaronoah](https://discuss.elastic.co/u/aaronoah)\
**Post date:** [December 20, 2018, 4:58pm UTC](https://discuss.elastic.co/t/kibana-plugin-helpers-command-not-found-in-plugin-development/161733/1 "2018-12-20T16:58:43Z")

</div>

Hi, Kibana community,

I ran into an issue when porting a new version of my calendar visualization plugin

> **[aaronoah/kibana\_calendar\_vis](https://github.com/aaronoah/kibana_calendar_vis)**
>
> This plugin gives a calendar heatmap visualization in Kibana Visualize app - aaronoah/kibana\_calendar\_vis

for Kibana master branch. I followed the doc here:

> **[elastic/kibana](https://github.com/elastic/kibana/tree/master/packages/kbn-plugin-helpers)**
>
> :bar\_chart: Kibana analytics and search dashboard for Elasticsearch - elastic/kibana

It seems that `yarn add --dev link:../../kibana/packages/kbn-plugin-helpers` does not help and after I run `yarn kbn bootstrap` and there was an error when I ran `yarn test`:

```auto
yarn run v1.10.1
$ yarn test:browser && yarn test:jest && yarn test:functionalTests
$ plugin-helpers test:browser
/bin/sh: plugin-helpers: command not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

```

I found `yarn kbn bootstrap` skips the dependency of `@kbn/plugin-helpers`:

...  
Installing dependencies in [kibana]:

$ node ./preinstall\_check  
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.  
[1/5] 🔍 Validating package.json...  
[2/5] 🔍 Resolving packages...  
success Already up-to-date.  
Skipping workspace project: @elastic/datemath  
Skipping workspace project: @elastic/eslint-config-kibana  
Skipping workspace project: @elastic/eslint-plugin-kibana-custom  
Skipping workspace project: @kbn/babel-code-parser  
Skipping workspace project: @kbn/babel-preset  
Skipping workspace project: @kbn/config-schema  
Skipping workspace project: @kbn/dev-utils  
Skipping workspace project: @kbn/es-query  
Skipping workspace project: @kbn/es  
Skipping workspace project: @kbn/eslint-import-resolver-kibana  
Skipping workspace project: @kbn/eslint-plugin-license-header  
Skipping workspace project: @kbn/i18n  
Skipping workspace project: @kbn/interpreter  
Skipping workspace project: @kbn/plugin-generator  
Skipping workspace project: @kbn/plugin-helpers  
Skipping workspace project: @kbn/pm  
Skipping workspace project: @kbn/system-loader  
Skipping workspace project: @kbn/test-subj-selector  
Skipping workspace project: @kbn/test  
Skipping workspace project: @kbn/ui-framework  
Skipping workspace project: kbn\_tp\_custom\_visualizations  
Skipping workspace project: kbn\_tp\_sample\_app\_plugin  
Skipping workspace project: kbn\_tp\_sample\_panel\_action  
Skipping workspace project: kbn\_tp\_visualize\_embedding  
Skipping workspace project: x-pack  
Skipping workspace project: infra  
....

In this setup, I used the same versions of node and yarn with Kibana master branch.  
Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [December 20, 2018, 8:36pm UTC](https://discuss.elastic.co/t/kibana-plugin-helpers-command-not-found-in-plugin-development/161733/2 "2018-12-20T20:36:19Z")

</div>

@spalger Any idea here?

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [December 20, 2018, 10:53pm UTC](https://discuss.elastic.co/t/kibana-plugin-helpers-command-not-found-in-plugin-development/161733/3 "2018-12-20T22:53:09Z")

</div>

with `link:` style dependencies yarn doesn't include the necessary `.bin` symlinks, but we patch that behavior when you run `yarn kbn bootstrap`. When you ran `yarn add --dev ...` yarn destroys the patch that we add, so you have to run `yarn kbn bootstrap` again to patch the bin scripts. Because of this and other minor gotchas I recommend editing the `package.json` file directly rather than using `yarn add ...` and then run `yarn kbn bootstrap` to install/remove dependencies from your plugin.

---

<div class="post-metadata">

**Author:** ![aaronoah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaronoah/32/27950_2.png) [@aaronoah](https://discuss.elastic.co/u/aaronoah)\
**Post date:** [December 21, 2018, 2:25am UTC](https://discuss.elastic.co/t/kibana-plugin-helpers-command-not-found-in-plugin-development/161733/4 "2018-12-21T02:25:52Z")

</div>

I tried to run only the `yarn kbn bootstrap` under my project, it didn't fetch node\_modules under the project and `plugin-helpers` still not found. The `yarn kbn bootstrap` command only still skips the dependencies as shown in the above comment.

---

<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:** [January 18, 2019, 2:25am UTC](https://discuss.elastic.co/t/kibana-plugin-helpers-command-not-found-in-plugin-development/161733/5 "2019-01-18T02:25:58Z")

</div>

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