title: How to ignore 'Could not resolve dependency' error using yarn?
body: <p>I've got this error when running <code>yarn</code> on my project</p>
  <pre><code>Could not resolve dependency:
  npm WARN peer package-xyz@&quot;^1.0.0&quot; from package-abc@2.0.0
  npm WARN node_modules/package-abc
  ...
  Fix the upstream dependency conflict, or retry
  npm ERR! this command with --force, or --legacy-peer-deps
  </code></pre>
  <p>I try <a href="https://classic.yarnpkg.com/lang/en/docs/cli/install/#toc-yarn-install-force" rel="nofollow noreferrer">--force</a> flag but it seems it does something different</p>
  <blockquote>
  <p>This refetches all packages, even ones that were previously installed.</p>
  </blockquote>
  <p>And it seems <code>--legacy-peer-deps</code> does not exist in yarn.</p>
  <p>However I really do not care about this error because my build works anyway. So I want to be able to ignore that <code>Could not resolve dependency</code> errors in that case. Is there anyway to do so using <code>yarn</code>?</p>
  <p>I am using <code>yarn</code> v1.22.8</p>