# Got stuck on a yarn warning when trying to install

**URL:** https://meta.discourse.org/t/got-stuck-on-a-yarn-warning-when-trying-to-install/322054
**Category:** Self-hosting
**Created:** [August 17, 2024, 6:48am UTC](https://meta.discourse.org/t/got-stuck-on-a-yarn-warning-when-trying-to-install/322054 "2024-08-17T06:48:48Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![CycleBai](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cyclebai/32/441727_2.png) [@CycleBai](https://meta.discourse.org/u/CycleBai)
#### Post date: [August 17, 2024, 6:48am UTC](https://meta.discourse.org/t/got-stuck-on-a-yarn-warning-when-trying-to-install/322054/1 "2024-08-17T06:48:49Z")

</div>

> English is not my native language, if there are grammatical errors in this post, please edit it, thank you!

When I tried to install Discourse on Ubuntu 22.04 LTS, it got stuck at one operation for more than 15 minutes. Here is the final output:

```plaintext
I, [2024-08-17T06:30:34.444182 #1] INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2024-08-17T06:30:39.190877 #1] INFO -- :
I, [2024-08-17T06:30:39.193815 #1] INFO -- : > cd /var/www/discourse && if ["tests-passed" != "tests-passed"]; then
rm -rf app/assets/javascripts/node_modules fi I, [2024-08-17T06:30:39.196750 #1] INFO -- : I, [2024-08-17T06:30:39.197209 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'yarn config set network-timeout 60000 -g' I , [2024-08-17T06:30:39.709544 #1] INFO -- : yarn config v1.22.22 success Set "network-timeout" to "60000". Done in 0.10s. I, [2024-08-17T06:30:39.710063 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
warning Resolution field "unset-value@2.0.1" is incompatible with requested version "unset-value@^1.0.0"

```

Steps I performed:

- cd /var/discourse
- ./discourse-setup
- Enter site information
- Wait for a while
- Stay on the above output

I followed the guide in [discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md) to install.  
If I did anything wrong, please let me know, thank you!

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [August 17, 2024, 7:19am UTC](https://meta.discourse.org/t/got-stuck-on-a-yarn-warning-when-trying-to-install/322054/2 "2024-08-17T07:19:29Z")

</div>

> [@CycleBai](#):
>
> it got stuck at one operation for more than 15 minutes.

But did the install succeed? This is (somewhat) expected on lower end networks, and/or on slower machines.

---

<div class="post-metadata">

### Author: ![CycleBai](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cyclebai/32/441727_2.png) [@CycleBai](https://meta.discourse.org/u/CycleBai)
#### Post date: [August 17, 2024, 11:06am UTC](https://meta.discourse.org/t/got-stuck-on-a-yarn-warning-when-trying-to-install/322054/3 "2024-08-17T11:06:08Z")

</div>

Oh yeah, when I tried accessing again, it worked fine.

---

<div class="post-metadata">

### Author: ![CycleBai](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cyclebai/32/441727_2.png) [@CycleBai](https://meta.discourse.org/u/CycleBai)
#### Post date: [August 17, 2024, 11:56pm UTC](https://meta.discourse.org/t/got-stuck-on-a-yarn-warning-when-trying-to-install/322054/4 "2024-08-17T23:56:49Z")

</div>

But I think it’s worth noting that every time I rebuild, etc., I’ll be stuck at this step for several minutes.  
I’m not sure what’s causing this, is it a network issue?

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [August 18, 2024, 2:47am UTC](https://meta.discourse.org/t/got-stuck-on-a-yarn-warning-when-trying-to-install/322054/5 "2024-08-18T02:47:38Z")

</div>

It’s either a network speed issue, or a disk speed issue, IIRC.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [September 17, 2024, 2:47am UTC](https://meta.discourse.org/t/got-stuck-on-a-yarn-warning-when-trying-to-install/322054/6 "2024-09-17T02:47:47Z")

</div>

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