title: npm install from Git in a specific version
body: <p>Assumed that I have written a module for Node.js which I would like to keep private. I know that I can (should) add the line:</p>
  
  <pre><code>"private": "true"
  </code></pre>
  
  <p>to the <code>package.json</code> file, and I also know that I can <code>npm install</code> this module using a file system path or a link to a git repository, including GitHub.</p>
  
  <p>I also know that I can put such a file system path or a link to a git repo into <code>package.json</code>, so that the <code>dependencies</code> part may look somewhat like this:</p>
  
  <pre><code>"dependencies": {
    "myprivatemodule": "git@github.com:..."
  }
  </code></pre>
  
  <p>What I now want is not to link to the latest version, but to a specific one. The only possibility I know of is to link to a specific commit using its ID. But this is way less readable and worse maintainable than using a version number such as <code>0.3.1</code>.</p>
  
  <p>So my question is: Is it possible to specify such a version number anyway and make npm search the git repository for the latest commit that includes this version?</p>
  
  <p>If not, how do you resolve this issue in your projects? Do you live with commit IDs or is there a better solution to this?</p>