# Unit testing and building from source

**URL:** <https://discuss.elastic.co/t/unit-testing-and-building-from-source/35352>\
**Category:** Kibana\
**Created:** [November 23, 2015, 7:33pm UTC](https://discuss.elastic.co/t/unit-testing-and-building-from-source/35352 "2015-11-23T19:33:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlondAngel](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@BlondAngel](https://discuss.elastic.co/u/BlondAngel)\
**Post date:** [November 23, 2015, 7:33pm UTC](https://discuss.elastic.co/t/unit-testing-and-building-from-source/35352/1 "2015-11-23T19:33:22Z")

</div>

When I run 'git clone [https://github.com/elastic/kibana.git](https://github.com/elastic/kibana.git) --recursive --branch 4.2' and then in the directory, run 'npm install' I get some errors. I am running in a vagrant VM running Ubuntu 14.04.

I wish to run the unit testing but I can't really do that until 'npm install' works correctly. I am following the instructions here: [https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#development-environment-setup](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#development-environment-setup)

Currently elastic.co is providing download files versions 4.2.1 and 4.1.3. What would be the git clone equivalent of that, so that I can run the unit testing? If I use branch 4.2, that is actually 4.2.2, not 4.2.1.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 25, 2015, 8:04pm UTC](https://discuss.elastic.co/t/unit-testing-and-building-from-source/35352/2 "2015-11-25T20:04:36Z")

</div>

> I get some errors

What errors, specifically?

> What would be the git clone equivalent of that, so that I can run the unit testing?

Well, you can just do a plain clone a check out the tag corresponding to the release you're interested in.

---

<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:** [July 6, 2017, 2:08pm UTC](https://discuss.elastic.co/t/unit-testing-and-building-from-source/35352/3 "2017-07-06T14:08:15Z")

</div>


