Unit testing and building from source

When I run 'git clone 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

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.

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.