title: 400 bad request when logging/pushing npm package to nexus?
body: <p>I am trying to use a private <code>npm</code> registry for my nodejs projects and I am using nexus for that matter. I kept <code>admin</code> user to be used, at least for testing and to guarantee there's no permission issue. However, I can login neither publish using <code>npm login --registry &lt;private-registry-address&gt;</code> and <code>npm publish --registry &lt;private-registry-address&gt;</code> receptively. I used several methods, first I manually added entries in <code>.npmrc</code> file as follows:</p>
  
  <p><strong>This one is mentioned in Nexus 3 docs:</strong></p>
  
  <pre><code>➜  echo "email=$NPM_EMAIL" &gt; $HOME/.npmrc                                       
  ➜  echo "_auth=$(echo -n "$NPM_USER:$NPM_PASS" | openssl base64)" &gt;&gt; $HOME/.npmrc
  ➜  echo "always-auth=true" &gt;&gt; $HOME/.npmrc
  </code></pre>
  
  <p>Then I try to publish using <code>npm publish --registry http://172.17.0.1:8081/repository/npmtest/</code>, but it just gives me:</p>
  
  <pre><code>npm ERR! code E400
  npm ERR! 400 Bad Request - PUT http://172.17.0.1:8081/repository/npmtest/mypackage
  </code></pre>
  
  <p><strong>This one is kind of the official in npm docs:</strong></p>
  
  <p>Here, I log in the repo using the credentials I have as follows:</p>
  
  <pre><code>➜  npm login --registry http://172.17.0.1:8081/repository/npmtest/
  </code></pre>
  
  <p>and enter my login creds:</p>
  
  <pre><code>Username: admin
  Password: 
  Email: (this IS public) admin@example.org
  </code></pre>
  
  <p>But unfortunately, it gives me the same exact error:</p>
  
  <pre><code>npm ERR! code E400
  npm ERR! 400 Bad Request - PUT http://localhost:8081/repository/npmtest/-/user/org.couchdb.user:admin
  </code></pre>
  
  <p>I have added <code>npm Bearer Token Realm</code> in Nexus as I saw in many discussions and it didn't make a difference as well. </p>
  
  <p>I have tried to use another repo <code>verdaccio</code> and it worked normally, that's why I am pretty sure this is a nexus issue. </p>
  
  <p><strong>Note: I am using all repo managers (Nexus and verdaccio) as docker containers, anyway this should not be an issue.</strong></p>
  
  <p>I am running <code>npm</code> version <code>6.10</code></p>
  
  <p>What could be a solution here for nexus to work?</p>