<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: 0.11.1</li>
<li>Operating System: macOS</li>
<li>Extra: Yarn 1.22</li>
</ul>
<p dir="auto"><strong>Code Snippet</strong></p>
<p dir="auto">Minimal reproducible example in a new empty directory:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="yarn init -y
yarn add playwright-chromium
ls -la node_modules/playwright-core/.local-chromium/mac-740847/chrome-mac
# Chromium revision is locally existing 🙂
yarn add -D @testing-library/react # example library
ls -la node_modules/playwright-core/.local-chromium/mac-740847/chrome-mac
# -&gt; No such file or directory
# Chromium revision is not existing anymore."><pre class="notranslate">yarn init -y
yarn add playwright-chromium
ls -la node_modules/playwright-core/.local-chromium/mac-740847/chrome-mac
<span class="pl-c"><span class="pl-c">#</span> Chromium revision is locally existing 🙂</span>
yarn add -D @testing-library/react <span class="pl-c"><span class="pl-c">#</span> example library</span>
ls -la node_modules/playwright-core/.local-chromium/mac-740847/chrome-mac
<span class="pl-c"><span class="pl-c">#</span> -&gt; No such file or directory</span>
<span class="pl-c"><span class="pl-c">#</span> Chromium revision is not existing anymore.</span></pre></div>
<p dir="auto">Workaround</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="yarn install -f"><pre class="notranslate">yarn install -f</pre></div>
<p dir="auto"><strong>Describe the bug</strong></p>
<p dir="auto">See the code above, for any questions feel free to ask. I'm experiencing this issue on various of repositories in which I'm working on locally in combination with Playwright.</p>
<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: 0.11.1</li>
<li>Operating System: Mac</li>
</ul>
<p dir="auto"><strong>Code Snippet</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { chromium } = require('playwright'); 

chromium.launch().then((browser: any) =&gt; {
      console.log(&quot;launched&quot;)
})
  .catch((e: any) =&gt; console.log(e))"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> chromium <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'playwright'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> 

<span class="pl-s1">chromium</span><span class="pl-kos">.</span><span class="pl-en">launch</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">browser</span>: <span class="pl-s1">any</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span>
      <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"launched"</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
  <span class="pl-kos">.</span><span class="pl-en">catch</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">e</span>: <span class="pl-s1">any</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span><span class="pl-kos">)</span></pre></div>
<p dir="auto"><strong>Describe the bug</strong><br>
After installing playwright for the first time, I tried to run it and got the error<br>
<strong>Error: Chromium revision is not downloaded. Run "npm install"</strong></p>
<p dir="auto">I am in a yarn exclusive environment so I am unable to run npm install. However, yarn install or yarn add do not resolve the issue.</p>
<p dir="auto">Only way to solve it was<br>
<strong>node node_modules/playwright/install.js</strong></p>