# Running Kibana 4 in development mode

**URL:** <https://discuss.elastic.co/t/running-kibana-4-in-development-mode/98328>\
**Category:** Kibana\
**Created:** [August 25, 2017, 5:39am UTC](https://discuss.elastic.co/t/running-kibana-4-in-development-mode/98328 "2017-08-25T05:39:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarun\_kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tarun_kumar/32/65948_2.png) [@tarun\_kumar](https://discuss.elastic.co/u/tarun_kumar)\
**Post date:** [August 25, 2017, 5:39am UTC](https://discuss.elastic.co/t/running-kibana-4-in-development-mode/98328/1 "2017-08-25T05:39:58Z")

</div>

Hi All,  
I am building Kibana plugin and for that I have to iteratively do the re-deploying my plugin to installed plugin folder and restart kibana each time. It seems running kibana in dev mode would help in not restart kibana each time but i am not able to do run Kibana in dev mode.

> bin/kibana --dev

would give below error:

> ERROR Extra serve options "--dev" must have a value

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [August 25, 2017, 5:44am UTC](https://discuss.elastic.co/t/running-kibana-4-in-development-mode/98328/2 "2017-08-25T05:44:27Z")

</div>

for development you should clone our github repository [https://github.com/elastic/kibana](https://github.com/elastic/kibana) and follow the instructions in [https://github.com/elastic/kibana/blob/4.6/CONTRIBUTING.md](https://github.com/elastic/kibana/blob/4.6/CONTRIBUTING.md) on setting up your dev environment

---

<div class="post-metadata">

**Author:** ![tarun\_kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tarun_kumar/32/65948_2.png) [@tarun\_kumar](https://discuss.elastic.co/u/tarun_kumar)\
**Post date:** [August 25, 2017, 6:50am UTC](https://discuss.elastic.co/t/running-kibana-4-in-development-mode/98328/4 "2017-08-25T06:50:13Z")

</div>

I downloaded Kibana-4.4.2 (as per our es production compatible version) [GitHub - elastic/kibana at v4.4.2](https://github.com/elastic/kibana/tree/v4.4.2)  
I did not find config/kibana.dev.yml file. Will i have to add kibana.dev.yml manually?

Nevertheless (without kibana.dev.yml) , i did straight away start and below is error when i did npm start as per contribution kibana page:  
user@user:~/Desktop/Tarun-Handover/kibana-4.4.2$ npm start

> kibana@4.4.2 start /home/user/Desktop/Tarun-Handover/kibana-4.4.2  
> ./bin/kibana --dev

for complete error please check this link:

> [https://pastebin.com/KdxuYsQk](https://pastebin.com/KdxuYsQk)

especially concerned about less file giving below issue for app\_switcher (complete in above pastebin):

> ERROR in ./src/ui/public/chrome/directives/app\_switcher/app\_switcher.less  
> Module build failed: ModuleBuildError: Module build failed: URIError: URI malformed  
> at decodeURIComponent (native)  
> at /home/user/Desktop/Tarun-Handover/kibana-4.4.2/node\_modules/loader-utils/index.js:113:12

On ctrl+c

> npm ERR! Linux 3.16.0-30-generic  
> npm ERR! argv "/home/user/.nvm/versions/node/v4.3.2/bin/node" "/home/user/.nvm/versions/node/v4.3.2/bin/npm" "start"  
> npm ERR! node v4.3.2  
> npm ERR! npm v3.10.9  
> npm ERR! code ELIFECYCLE  
> npm ERR! kibana@4.4.2 start: `./bin/kibana --dev`  
> npm ERR! Exit status 130  
> npm ERR!  
> npm ERR! Failed at the kibana@4.4.2 start script './bin/kibana --dev'.  
> npm ERR! Make sure you have the latest version of node.js and npm installed.  
> npm ERR! If you do, this is most likely a problem with the kibana package,  
> npm ERR! not with npm itself.  
> npm ERR! Tell the author that this fails on your system:  
> npm ERR! ./bin/kibana --dev  
> npm ERR! You can get information on how to open an issue for this project with:  
> npm ERR! npm bugs kibana  
> npm ERR! Or if that isn't available, you can get their info via:  
> npm ERR! npm owner ls kibana  
> npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:  
npm ERR! /home/user/Desktop/Tarun-Handover/kibana-4.4.2/npm-debug.log

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [August 25, 2017, 7:57am UTC](https://discuss.elastic.co/t/running-kibana-4-in-development-mode/98328/5 "2017-08-25T07:57:40Z")

</div>

seems that version of kibana is broken at the moment, there is a work around mentioned in this issue:

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

---

<div class="post-metadata">

**Author:** ![tarun\_kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tarun_kumar/32/65948_2.png) [@tarun\_kumar](https://discuss.elastic.co/u/tarun_kumar)\
**Post date:** [August 28, 2017, 5:15am UTC](https://discuss.elastic.co/t/running-kibana-4-in-development-mode/98328/6 "2017-08-28T05:15:03Z")

</div>

hi @ppisljar, it seems the suggestion wont work for kibana-4.4.2 and may have worked kibana-4.5.0  
Please check this link as well in this case seems no solution found?:

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

Here , details on node\_modules/autoprefixer-loader/package.json :-  
dependencies": {  
"autoprefixer-core": "^5.1.0",  
"loader-utils": "^0.2.5",  
"postcss": "^4.1.11"  
},  
So, they are asking for downgrading loader-utils version from 0.2.14 to 0.2.13 but mine is already 0.2.5 should i upgrade or down grade ?

---

<div class="post-metadata">

**Author:** ![tarun\_kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tarun_kumar/32/65948_2.png) [@tarun\_kumar](https://discuss.elastic.co/u/tarun_kumar)\
**Post date:** [August 31, 2017, 5:43am UTC](https://discuss.elastic.co/t/running-kibana-4-in-development-mode/98328/7 "2017-08-31T05:43:37Z")

</div>

anyone, would like to suggest on this?  
I have also posted my query here [https://github.com/elastic/kibana/issues/6885#issuecomment-326208738](https://github.com/elastic/kibana/issues/6885#issuecomment-326208738) as user tarunz001

---

<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:** [September 28, 2017, 5:43am UTC](https://discuss.elastic.co/t/running-kibana-4-in-development-mode/98328/8 "2017-09-28T05:43:51Z")

</div>

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