<p></p>
<p dir="auto">I had the same issue (also Ubuntu 20.04). I successfully installed Yarn as per <a href="https://linuxize.com/post/how-to-install-yarn-on-ubuntu-20-04/" rel="nofollow">https://linuxize.com/post/how-to-install-yarn-on-ubuntu-20-04/</a> , but I then encountered a separate issue with one of the node modules:</p>
<pre class="notranslate"><code class="notranslate">error osm-community-index@5.4.0: The engine "node" is incompatible with this module. Expected version ">=16.14.0". Got "14.21.1"
</code></pre>
<p dir="auto">So I installed a newer node with:</p>
<pre class="notranslate"><code class="notranslate">curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
</code></pre>
<p dir="auto">which worked, but (more relevantly to this issue) also included post-install instructions for installing yarn. So possibly the trick here is "install node LTS as per above, then follow its suggestions to install yarn".</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/3579#issuecomment-1362756221">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJGNVXIDG72QMGWS63WOQ7FRANCNFSM5ZNUQ7OQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJXKYIOO4FSDHIS723WOQ7FRA5CNFSM5ZNUQ7O2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOKE5AE7I.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/3579/1362756221</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/3579#issuecomment-1362756221",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/3579#issuecomment-1362756221",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>