# Build kibana in windows 10

**URL:** <https://discuss.elastic.co/t/build-kibana-in-windows-10/115054>\
**Category:** Kibana\
**Created:** [January 11, 2018, 10:13am UTC](https://discuss.elastic.co/t/build-kibana-in-windows-10/115054 "2018-01-11T10:13:38Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![radi](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@radi](https://discuss.elastic.co/u/radi)\
**Post date:** [January 11, 2018, 10:13am UTC](https://discuss.elastic.co/t/build-kibana-in-windows-10/115054/1 "2018-01-11T10:13:38Z")

</div>

Hello,

I want to build Kibana 5.4.0 locally from sources on Windows 10 machine.  
I found the procedure for linux not yet for windows

if someone test the build kibana running on windows, Please provide the proper steps to prepare the builds if it's working

thanks & regards,  
radi

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [January 12, 2018, 1:02pm UTC](https://discuss.elastic.co/t/build-kibana-in-windows-10/115054/2 "2018-01-12T13:02:52Z")

</div>

Hey @radi, is there a specific step in the [Contributing Guide](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md) that doesn't work on Windows? Also, you shouldn't need to normally build Kibana from source but should be able to download an already built version from [https://www.elastic.co/downloads/past-releases](https://www.elastic.co/downloads/past-releases)

---

<div class="post-metadata">

**Author:** ![Krunal\_kalaria](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krunal_kalaria/32/23862_2.png) [@Krunal\_kalaria](https://discuss.elastic.co/u/Krunal_kalaria)\
**Post date:** [January 12, 2018, 1:17pm UTC](https://discuss.elastic.co/t/build-kibana-in-windows-10/115054/3 "2018-01-12T13:17:44Z")

</div>

Hey @radi,

[https://www.elastic.co/downloads](https://www.elastic.co/downloads)

you can download the .zip for windows from the above link and in this steps also given how to start the ELK Stack in windows.

Regards,  
Krunal.

---

<div class="post-metadata">

**Author:** ![radi](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@radi](https://discuss.elastic.co/u/radi)\
**Post date:** [January 12, 2018, 1:58pm UTC](https://discuss.elastic.co/t/build-kibana-in-windows-10/115054/4 "2018-01-12T13:58:14Z")

</div>

hi, @Krunal_kalaria@Brandon_Kobel  
Thank's for your replay but i already download zip and run it in windows and it's work fine for me  
but what i want it's the procedure to build project after modification in code ( I want add new plugin developping visulaization ) it's why i need to build source code in windows

Regards,  
radi

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [January 12, 2018, 2:22pm UTC](https://discuss.elastic.co/t/build-kibana-in-windows-10/115054/6 "2018-01-12T14:22:19Z")

</div>

@radi the [Contributing Guide](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md) has that information, if a specific step doesn't work with Windows please let me know and I can open up an issue to correct it.

---

<div class="post-metadata">

**Author:** ![radi](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@radi](https://discuss.elastic.co/u/radi)\
**Post date:** [January 12, 2018, 2:33pm UTC](https://discuss.elastic.co/t/build-kibana-in-windows-10/115054/7 "2018-01-12T14:33:33Z")

</div>

@Brandon_Kobel  
That part it's not clear !,  
On Windows, you'll need you use Git Bash, Cygwin, or a similar shell that exposes the sh command. And to successfully build you'll need Cygwin optional packages zip, tar, and shasum.

in windows 10 i add Bash Ubuntu in Windows but i don't see Kibana folder when i add it in file /home/test  
i anlay have . .. .bash\_history .bash\_logout .bashrc .cache .profile  
how can i acces to kibana directory !!?

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [January 12, 2018, 2:39pm UTC](https://discuss.elastic.co/t/build-kibana-in-windows-10/115054/8 "2018-01-12T14:39:05Z")

</div>

@radi the Windows Subsystem for Linux by default mounts your C: under `/mnt/c/`

---

<div class="post-metadata">

**Author:** ![radi](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@radi](https://discuss.elastic.co/u/radi)\
**Post date:** [January 12, 2018, 2:47pm UTC](https://discuss.elastic.co/t/build-kibana-in-windows-10/115054/9 "2018-01-12T14:47:16Z")

</div>

@Brandon_Kobel [quote="Brandon\_Kobel, post:8, topic:115054"]  
the Windows Subsystem for Linux by default mounts your C: under /mnt/c/  
[/quote]

in bash windows i have this error

PC:/mnt/c/kibana-5.4.0-windows$ yarn start  
ERROR: [Errno 2] No such file or directory: 'start'

and  
PC:/mnt/c/kibana-5.4.0-windows$ yarn build  
ERROR: [Errno 2] No such file or directory: 'build'

PC:/mnt/c/kibana-5.4.0-windows$ yarn --version  
0.10

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [January 12, 2018, 3:14pm UTC](https://discuss.elastic.co/t/build-kibana-in-windows-10/115054/10 "2018-01-12T15:14:24Z")

</div>

Kibana 5.4 is still using `npm` as opposed to `yarn`. [https://github.com/elastic/kibana/blob/5.4/CONTRIBUTING.md](https://github.com/elastic/kibana/blob/5.4/CONTRIBUTING.md) should have the specific commands for 5.4

---

<div class="post-metadata">

**Author:** ![radi](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@radi](https://discuss.elastic.co/u/radi)\
**Post date:** [January 12, 2018, 3:33pm UTC](https://discuss.elastic.co/t/build-kibana-in-windows-10/115054/11 "2018-01-12T15:33:16Z")

</div>

@Brandon_Kobel  
when i run npm start i have no error but don't kibana in [http://localhost:5601](http://localhost:5601)  
PC:/mnt/c/kibana-5.4.0-windows-x86# npm start  
PC:/mnt/c/kibana-5.4.0-windows-x86# \> ./bin/kibana

sh: 1: ./bin/kibana: not found  
npm ERR! weird error 127  
npm WARN This failure might be due to the use of legacy binary "node"  
npm WARN For further explanations, please read  
/usr/share/doc/nodejs/README.Debian

this the scripts add to package.json  
"scripts": {  
"start": "./bin/kibana"

},  
"repository": {  
"type": "git",  
"url": "[https://github.com/elastic/kibana.git](https://github.com/elastic/kibana.git)"  
},  
"engines": {  
"node": "6.10.2"  
}  
}

I don't see what I missed, the npm strat it's not the probleme i run kibana with ( click in bin) but the build !!! it's the big probleme !!!

for build errors :  
pc:/mnt/c/kibana-5.4.0-windows-x86# npm run build -- --debug  
npm ERR! Linux 3.4.0+  
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build" "--" "--debug"  
npm ERR! node v6.12.3  
npm ERR! npm v3.10.10

npm ERR! missing script: build  
npm ERR!  
npm ERR! If you need help, you may report this error at:  
npm ERR! [https://github.com/npm/npm/issues](https://github.com/npm/npm/issues)

npm ERR! Please include the following file with any support request:  
npm ERR! /mnt/c/kibana-5.4.0-windows-x86/npm-debug.log

Regards,  
radi

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [January 12, 2018, 6:00pm UTC](https://discuss.elastic.co/t/build-kibana-in-windows-10/115054/12 "2018-01-12T18:00:13Z")

</div>

@radio does /mnt/c/kibana-5.4.0-windows-x86 contain the Kibana source code? You shouldn't have to add anything to a package.json file to be able to run `npm start`.

---

<div class="post-metadata">

**Author:** ![radi](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@radi](https://discuss.elastic.co/u/radi)\
**Post date:** [January 15, 2018, 9:10am UTC](https://discuss.elastic.co/t/build-kibana-in-windows-10/115054/13 "2018-01-15T09:10:37Z")

</div>

Hi, @Brandon_Kobel  
yes, /mnt/c/kibana-5.4.0-windows-x86 contain the Kibana source code  
and this is my package.json of code with no add :  
{  
"name": "kibana",  
"description": "Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elasticsearch.",  
"keywords": [  
"kibana",  
"elasticsearch",  
"logstash",  
"analytics",  
"visualizations",  
"dashboards",  
"dashboarding"  
],  
"version": "5.4.0",  
"build": {  
"number": 15063,  
"sha": "75afc9fbb024df55fa01acd1a4c2f76d44961746"  
},  
"repository": {  
"type": "git",  
"url": "[https://github.com/elastic/kibana.git](https://github.com/elastic/kibana.git)"  
},  
"engines": {  
"node": "6.10.2"  
}  
}

when i build my project i have this error:

root@PC:/mnt/c/kibana-5.4.0-windows-x86# npm run build -- --debug  
npm ERR! Linux 3.4.0+  
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build" "--" "--debug"  
npm ERR! node v6.12.3  
npm ERR! npm v3.10.10

npm ERR! missing script: build  
npm ERR!  
npm ERR! If you need help, you may report this error at:  
npm ERR! [https://github.com/npm/npm/issues](https://github.com/npm/npm/issues)

npm ERR! Please include the following file with any support request:  
npm ERR! /mnt/c/kibana-5.4.0-windows-x86/npm-debug.log

---

<div class="post-metadata">

**Author:** ![radi](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@radi](https://discuss.elastic.co/u/radi)\
**Post date:** [January 15, 2018, 10:57am UTC](https://discuss.elastic.co/t/build-kibana-in-windows-10/115054/14 "2018-01-15T10:57:57Z")

</div>

hi, @Brandon_Kobel  
it's work i have the build with no errors after adding this in package.json  
"scripts": {  
"build": " run build"  
}  
root@PC:/mnt/c/kibana-5.4.0-windows-x86# npm build --debug  
root@PC:/mnt/c/kibana-5.4.0-windows-x86#

Just to make sur that my build is working ,I need to check something to confirm that ?? .

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [January 15, 2018, 1:29pm UTC](https://discuss.elastic.co/t/build-kibana-in-windows-10/115054/15 "2018-01-15T13:29:32Z")

</div>

@radi that package.json looks drastically different than the one in GitHub [here](https://github.com/elastic/kibana/blob/5.4/package.json). How did you get the Kibana source code?

---

<div class="post-metadata">

**Author:** ![radi](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@radi](https://discuss.elastic.co/u/radi)\
**Post date:** [January 15, 2018, 1:31pm UTC](https://discuss.elastic.co/t/build-kibana-in-windows-10/115054/16 "2018-01-15T13:31:44Z")

</div>

@Brandon_Kobel Unfortunately I was using the source of steup not githup...

---

<div class="post-metadata">

**Author:** ![radi](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@radi](https://discuss.elastic.co/u/radi)\
**Post date:** [January 15, 2018, 1:36pm UTC](https://discuss.elastic.co/t/build-kibana-in-windows-10/115054/17 "2018-01-15T13:36:03Z")

</div>

@Brandon_Kobel  
now that I'm using the githup source [GitHub - elastic/kibana at 5.4](https://github.com/elastic/kibana/tree/5.4) I have an error when I install npm dont' work so i do install with git  
but i have errors with npm start

root@PC:/mnt/c/kibana-5.4# npm start

> kibana@5.4.4 start /mnt/c/kibana-5.4  
> sh ./bin/kibana --dev

FATAL CLI ERROR Error: Cannot find module 'wreck'  
at Function.Module.\_resolveFilename (module.js:469:15)  
at Function.Module.\_load (module.js:417:25)  
at Module.require (module.js:497:17)  
at require (internal/module.js:20:19)  
at Object. (/mnt/c/kibana-5.4/node\_modules/even-better/lib/monitor.js:11:13)  
at Module.\_compile (module.js:570:32)  
at Module.\_extensions..js (module.js:579:10)  
at Object.require.extensions.(anonymous function) [as .js] (/mnt/c/kibana-5.4/node\_modules/babel-register/lib/node.js:152:7)  
at Module.load (module.js:487:32)  
at tryModuleLoad (module.js:446:12)  
at Function.Module.\_load (module.js:438:3)  
at Module.require (module.js:497:17)  
at require (internal/module.js:20:19)  
at Object. (/mnt/c/kibana-5.4/node\_modules/even-better/lib/index.js:2:15)  
at Module.\_compile (module.js:570:32)  
at Module.\_extensions..js (module.js:579:10)  
at Object.require.extensions.(anonymous function) [as .js] (/mnt/c/kibana-5.4/node\_modules/babel-register/lib/node.js:152:7)

npm ERR! Linux 3.4.0+  
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"  
npm ERR! node v6.12.3  
npm ERR! npm v3.10.10  
npm ERR! code ELIFECYCLE  
npm ERR! kibana@5.4.4 start: `sh ./bin/kibana --dev`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the kibana@5.4.4 start script 'sh ./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! sh ./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! /mnt/c/kibana-5.4/npm-debug.log

---

<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:** [February 12, 2018, 1:36pm UTC](https://discuss.elastic.co/t/build-kibana-in-windows-10/115054/18 "2018-02-12T13:36:13Z")

</div>

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