title: How to install the latest possible version of an npm package
body: <p>How do I install the latest available version of an npm package?  '@latest' sure doesn't fetch the latest - I assume it means the latest stable or something.</p>
  
  <p>I've been using a hack for a while because I cannot seem to find any info on this:</p>
  
  <pre><code>npm i extract-text-webpack-plugin@X 
  </code></pre>
  
  <p>The 'X' causes it to fail and dump all possible versions where I then copy and paste the correct one instead of the 'X'. Kinda ridiculous.</p>
  
  <p>I've tried 3rd party packages like 'latest-version' but they all fail to get the very latest version.</p>
  
  <p>There doesn't seem to be an official to do this.  For example at the time of writing the latest version of <em>extract-text-webpack-plugin</em> is <em>2.0.0-beta.4</em>. However doing:</p>
  
  <pre><code>npm i extract-text-webpack-plugin@latest
  </code></pre>
  
  <p>Will install '1.0.1'</p>
  
  <p>I can see the latest version by doing</p>
  
  <pre><code>npm info pkg versions --json (without --json it will cut off when there are many versions)
  </code></pre>
  
  <p>For lack of an actual tool I guess its going to be some grep work.</p>