title: How to set npm registry only for the specific project
body: <p>I'm using a private npm registry for one of my npm packages and I also have a couple of other packages referenced from the default npm registry. What I'm doing at the moment is:</p>
  
  <pre><code>npm config set registry https://private.registry.endpoint
  </code></pre>
  
  <p>However, this changes the registry globally. I can manually create a <code>.npmrc</code> at the root of my project and set the registry manually inside. This does not replace my global registry and uses the private registry only for the specific project. However, I want to do this with a command, instead of having to manually create the <code>.npmrc</code> and set the registry.</p>
  
  <p>In case you're wondering why I need this, I know how to do it myself, however I have to guide other users how to do it, and it would be simpler to just provide a command for them. I need to know if there is a way to do something of the sort:</p>
  
  <pre><code>npm config --local set registry https://private.registry.endpoint
  </code></pre>