title: NPM: how to specify registry to publish in the command line?
body: <p>I'm testing a new version of our npm packages registry. I'd like to run a job in our CI server specifying a registry different of the default. </p>
  
  <p>I tried to execute <code>npm publish --registry "http://nexus.dsv.myhost/nexus/repository/npmjs-registry</code> but it didn't work. It was published to the default registry. </p>
  
  <p>How do I specify a different registry while running <code>npm publish</code>. It is a scoped package.</p>