nguage="bash"><pre class="language-bash"><code class="language-bash">    <span class="token function">npm</span> adduser --registry<span class="token operator">=</span>http://private-registry.example.com --always-auth</code></pre></div>
<p>This will ensure that all requests to that registry (including for tarballs)
include an authorization header. This setting may be necessary for use with
private registries where metadata and package tarballs are stored on hosts with
different hostnames. See <code class="l