title: How should I set up a private npm registry?
body: <p>For a company project, I'd like to set up a private npm registry using Artifactory or Nexus, so packages can be shared with everyone without publishing them on <a href="https://registry.npmjs.org/" rel="nofollow noreferrer">https://registry.npmjs.org/</a></p>
  
  <p>In maven I would set up a release and a snapshot repo. For resolving I would put them in a group alongside a proxy of maven central.</p>
  
  <p>How does a setup for npm look like? npm's semver is able to differentiate release and prerelease, but I assume that routing them to different registries could be quite a difficult task.</p>
  
  <p>On the other hand one might want to be able to have control over what gets pushed to the "release registry", implementing permissions accordingly. For this you would have to use a "prerelease" and a "release" registy.</p>