title: Being dependant on a preferGlobal package
body: <p>If I am trying to use a package that has the <code>preferGlobal</code> option.</p>
  
  <p>How do I add <code>jshint</code> as a dependency to the <code>package.json</code> so I don't get the following message</p>
  
  <pre><code>npm WARN prefer global jshint@2.8.0 should be installed with -g
  </code></pre>