# Build kibana via proxy

**URL:** <https://discuss.elastic.co/t/build-kibana-via-proxy/256212>\
**Category:** Kibana\
**Created:** [November 21, 2020, 8:08am UTC](https://discuss.elastic.co/t/build-kibana-via-proxy/256212 "2020-11-21T08:08:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lstoneir](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@lstoneir](https://discuss.elastic.co/u/lstoneir)\
**Post date:** [November 21, 2020, 8:08am UTC](https://discuss.elastic.co/t/build-kibana-via-proxy/256212/1 "2020-11-21T08:08:02Z")

</div>

i have a source code of kibana 7.3.3  
i want to build kibana by :

```auto
yarn build --skip-node-download --skip-os-packages --skip-archives

```

i have no internet access except an http proxy!  
i want to build kibana by using this proxy but i get this error:

```auto
yarn run v1.16.0
$ node scripts/build --skip-node-download --skip-os-packages --skip-archives
 info [global] Verifying environment meets requirements
   │ succ Node.js version verified
   │ succ ✓ 0 sec

 info [global] Cleaning artifacts from previous builds
   │ debg Deleting patterns: [ '/home/user/Desktop/Sources/kibana/kibana/build',
   │ '/home/user/Desktop/Sources/kibana/kibana/target' ]
   │ debg Deleted 0 files/directories
   │ succ ✓ 0 sec

 info [global] Verifying previously downloaded node.js build for all platforms
   │ERROR failure
   │ERROR Error: connect ENETUNREACH 104.20.22.46:443
   │ at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1104:14)

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

```

I try several ways e.g:

```auto
yarn config set http_proxy http://....
yarn config set https_proxy http://...

OR

yarn config set httpProxy http://...
yarn config set httpsProxy http://...

```

I also try `http_proxy='http://...' ` in terminal but it does not work!

Please clear steps for building kibana!

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [November 23, 2020, 9:35am UTC](https://discuss.elastic.co/t/build-kibana-via-proxy/256212/2 "2020-11-23T09:35:47Z")

</div>

Hey @lstoneir,

Let's wait for any other replies, but I'm afraid any Kibana development related flows aren't easy/possible when you're behind a proxy (even if you manage to bypass this Node download issue, you'll have more problems at the next steps), see more details [here](https://github.com/elastic/kibana/issues/20965#issuecomment-407040985).

Best,  
Oleg

---

<div class="post-metadata">

**Author:** ![lstoneir](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@lstoneir](https://discuss.elastic.co/u/lstoneir)\
**Post date:** [December 2, 2020, 6:07pm UTC](https://discuss.elastic.co/t/build-kibana-via-proxy/256212/3 "2020-12-02T18:07:43Z")

</div>

If you look more closely, you will see that i am using `--skip-node-download`.  
so i no need to download node\_modules again. because i downloaded it before.  
unfortunately, now i have not any connection to internet except `A Http Proxy`.  
so i have to build kibana using this proxy.  
i have a question: i'm already download node\_modules! Why do I need the Internet for build kibana?

please help, i'm stucked in. @azasypkin

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [December 3, 2020, 7:58am UTC](https://discuss.elastic.co/t/build-kibana-via-proxy/256212/4 "2020-12-03T07:58:24Z")

</div>

> [@lstoneir](#):
>
> If you look more closely, you will see that i am using `--skip-node-download` .  
> so i no need to download node\_modules again.

If you read it more attentively 😛 , you'll see that this option is about `node` (NodeJS binary) and has nothing to do with node\_modules that should be downloaded.

But all jokes aside, it's just how it works and explained in the link I've already shared and I don't think we can do much here. Let's wait and see maybe someone else has other ideas though.

---

<div class="post-metadata">

**Author:** ![lstoneir](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@lstoneir](https://discuss.elastic.co/u/lstoneir)\
**Post date:** [December 12, 2020, 8:11am UTC](https://discuss.elastic.co/t/build-kibana-via-proxy/256212/5 "2020-12-12T08:11:01Z")

</div>

@azasypkin  
it means that there is no way to build via proxy?!

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [December 28, 2020, 8:48am UTC](https://discuss.elastic.co/t/build-kibana-via-proxy/256212/6 "2020-12-28T08:48:36Z")

</div>

@lstoneir,

Unfortunately I'm not aware of any way to do that.

--  
Oleg

---

<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:** [January 25, 2021, 8:48am UTC](https://discuss.elastic.co/t/build-kibana-via-proxy/256212/7 "2021-01-25T08:48:39Z")

</div>

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