title: NPM private repo, saving the package location in package.json
body: <p>It is possible to configure a repository location for NPM in the <code>publishConfig</code>, so that when <code>npm publish</code> is run the package get published to that specific repository/location. Now I was wondering if it is possible to do the same with installing. <code>npm install --save my-package --registry http://some.repo.com:4832</code> installs a package from a specific repository, but it requires the <code>--registry</code> parameter every time <code>npm-install</code> is run. </p>
  
  <p>Another option is to configure the NPM installation to that specific repository. The downside of this solution is that every time a developer comes along, s/he needs to add that specific repository. It's not all that problematic, but as with many things, it can and should be automated.</p>
  
  <p>So in short, I want:</p>
  
  <pre><code>"dependencies": {
    "lodash": "^4.17.5",
    "my-package": { "version": "^1.0.2", registry: "http://some.repo.com:4832" }
  }
  </code></pre>
  
  <p>So that becomes automated. I have checked the NPM documentation and have been googling, but I can't find an answer. Does anyone know if and then- how this can be done?</p>
  
  <p>Thanks in advance :)</p>