# Custom Plugin installation was unsuccessful

**URL:** <https://discuss.elastic.co/t/custom-plugin-installation-was-unsuccessful/180326>\
**Category:** Kibana\
**Created:** [May 9, 2019, 9:51am UTC](https://discuss.elastic.co/t/custom-plugin-installation-was-unsuccessful/180326 "2019-05-09T09:51:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arul\_Selvan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arul_selvan/32/45878_2.png) [@Arul\_Selvan](https://discuss.elastic.co/u/Arul_Selvan)\
**Post date:** [May 9, 2019, 9:51am UTC](https://discuss.elastic.co/t/custom-plugin-installation-was-unsuccessful/180326/1 "2019-05-09T09:51:41Z")

</div>

I'm getting below error while install my custom plugin, could you please help ?  
Kibana Version : 6.6.1  
Plugin installation was unsuccessful due to error "Command failed: /Users/abasker/kibana\_test/kibana-6.6.1-darwin-x86\_64/node/bin/node /Users/abasker/kibana\_test/kibana-6.6.1-darwin-x86\_64/src/cli --env.name=production --optimize.useBundleCache=false --server.autoListen=false --plugins.initialize=false  
Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`

FATAL Error: Optimizations failure.  
5481 modules

```
ERROR in ./plugins/wb_app/public/common/components/login/components/login.js
Module not found: Error: Can't resolve 'crypto-js/aes' in '/Users/abasker/kibana_test/kibana-6.6.1-darwin-x86_64/plugins/wb_app/public/common/components/login/components'

```

 ![54%20PM](https://us1.discourse-cdn.com/elastic/original/3X/a/0/a08db74112a098ce8d1651a0dc7bb497112a7d4d.png)

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [May 9, 2019, 3:08pm UTC](https://discuss.elastic.co/t/custom-plugin-installation-was-unsuccessful/180326/2 "2019-05-09T15:08:38Z")

</div>

The plugin can not resolve `crypto-js/pad-pkcs7` import from `login.js` in your plugin. Is crypto-js in the node\_modules folder of your plugin?

---

<div class="post-metadata">

**Author:** ![Arul\_Selvan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arul_selvan/32/45878_2.png) [@Arul\_Selvan](https://discuss.elastic.co/u/Arul_Selvan)\
**Post date:** [May 10, 2019, 6:52am UTC](https://discuss.elastic.co/t/custom-plugin-installation-was-unsuccessful/180326/3 "2019-05-10T06:52:52Z")

</div>

Thanks a lot for your immediate response, now I got some better understanding, before use install command , I think need to use plugin build in my development environment, so that it will resolve all the plugin dependency packages and zip it.

 ![14%20PM](https://us1.discourse-cdn.com/elastic/original/3X/9/6/9688f7feec145c7da3d40b02873c607c746d4230.png)

My question, is there any way to resolve all the plugin dependencies during installation ?

meaning my plugin alone is in git repo, without dependent packages, for continuous Integration just need to clone my plugin repo and resolve all the package dependencies during installation, will be possible ?

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [May 10, 2019, 1:21pm UTC](https://discuss.elastic.co/t/custom-plugin-installation-was-unsuccessful/180326/4 "2019-05-10T13:21:40Z")

</div>

There is no way to install plugins during Kibana installation, but you can manage plugins via something like npm or yarn and add a CI step to run `npm install` or `yarn` before bundling your plugin

---

<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:** [June 7, 2019, 1:21pm UTC](https://discuss.elastic.co/t/custom-plugin-installation-was-unsuccessful/180326/5 "2019-06-07T13:21:52Z")

</div>

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