title: How to specify local registry in yarn?
body: <p>I have a local nexus server, I'd like yarn to look through it before going online, basically <code>prefer-offline</code></p>
  <pre class="lang-sh prettyprint-override"><code>yarn install \
    --prefer-offline \
    --cache-folder C:\folder\yarn-cache \
    --preferred-cache-folder C:\folder\yarn-cache \
    --non-interactive \
    --no-lockfile \
    --registry http://server/repository/npm-group
  </code></pre>
  <p>Yarn fails to find a dependency offline then fails to go online. I don't know if that can be fixed.</p>