# Can we use yarn kbn bootstrap in offline mode

**URL:** <https://discuss.elastic.co/t/can-we-use-yarn-kbn-bootstrap-in-offline-mode/175168>\
**Category:** Kibana\
**Created:** [April 3, 2019, 10:46am UTC](https://discuss.elastic.co/t/can-we-use-yarn-kbn-bootstrap-in-offline-mode/175168 "2019-04-03T10:46:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![adityaPsl](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@adityaPsl](https://discuss.elastic.co/u/adityaPsl)\
**Post date:** [April 3, 2019, 10:46am UTC](https://discuss.elastic.co/t/can-we-use-yarn-kbn-bootstrap-in-offline-mode/175168/1 "2019-04-03T10:46:33Z")

</div>

Hello Team,

I am facing network issues, while running yarn kbn bootstrap.

Can we download and set depedencies and run yarn kbn bootstrapvin offline mode .

Kibana version : 6.3

Thank you,  
Aditya

---

<div class="post-metadata">

**Author:** ![Bill\_McConaghy](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@Bill\_McConaghy](https://discuss.elastic.co/u/Bill_McConaghy)\
**Post date:** [April 3, 2019, 3:07pm UTC](https://discuss.elastic.co/t/can-we-use-yarn-kbn-bootstrap-in-offline-mode/175168/2 "2019-04-03T15:07:07Z")

</div>

You can. Follow the directions for setting up the offline cache here: [https://yarnpkg.com/blog/2016/11/24/offline-mirror/](https://yarnpkg.com/blog/2016/11/24/offline-mirror/)

and then run `yarn kbn bootstrap —prefer-offline`

---

<div class="post-metadata">

**Author:** ![adityaPsl](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@adityaPsl](https://discuss.elastic.co/u/adityaPsl)\
**Post date:** [April 4, 2019, 3:50am UTC](https://discuss.elastic.co/t/can-we-use-yarn-kbn-bootstrap-in-offline-mode/175168/3 "2019-04-04T03:50:47Z")

</div>

Thank you very much Bill\_McConaghy.  
I will try this.

Thank you,  
Aditya

---

<div class="post-metadata">

**Author:** ![adityaPsl](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@adityaPsl](https://discuss.elastic.co/u/adityaPsl)\
**Post date:** [April 8, 2019, 5:26pm UTC](https://discuss.elastic.co/t/can-we-use-yarn-kbn-bootstrap-in-offline-mode/175168/4 "2019-04-08T17:26:24Z")

</div>

Hello Bill\_McConaghy,Team,

I tried setting up the offline/local repository, but i am facing following issue,  
i have downloaded required '.tgz' files and set the cache folder as mentioned here.

```auto
> yarn config set yarn-offline-mirror <folder_path_containing_.tgz_files>

```

Now, when i run the command

> yarn kbn bootstrap --prefer-offline

it tries to download files which are already available in the local folder.

i even tried clearing cache and cleaning the project.

I am seeing this behavior particularly on @kbn/pm module.  
It went well for 3-4 modules.

Any pointers to resolve this issue are really appreciated.

Thank you,  
Aditya

---

<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:** [May 6, 2019, 5:27pm UTC](https://discuss.elastic.co/t/can-we-use-yarn-kbn-bootstrap-in-offline-mode/175168/5 "2019-05-06T17:27:58Z")

</div>

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