title: How to set _auth for a scoped registry in .npmrc?
body: <p>I am wondering how to configure the <code>.npmrc</code> file so that I can have a default registry and a different scoped registry with authentication. </p>
  
  <p>I am using Nexus for the private repository and I am not sure how to set authentication for the scoped registry, only the default registry. </p>
  
  <p>For example my <code>~/.npmrc</code> file is:</p>
  
  <pre><code>registry=https://registry.npmjs.org/
  @test-scope:registry=http://nexus:8081/nexus/content/repositories/npm-test/
  email=test@user.com
  _auth="…"
  </code></pre>
  
  <p>If I do <code>npm publish</code> for a package scoped to <code>test-scope</code>, I get an authentication error.</p>
  
  <p>AFAIK, the <code>_auth</code> only applies to the <code>registry=...</code> section. Is there a way of specifying an auth key for the <code>@test-scope:registry=...</code> section?</p>
  
  <p>Thanks,</p>