title: How do I make my NPM package show "npm WARN prefer global" when installing locally
body: <p>Hard to google the subj — too many user questions, mine is about package development. I want a user of my package see <em>"npm WARN prefer global"</em> when installing it not globally.</p>
  
  <p>I thought <code>npm install yo</code> used to have such a warning but now it does not. At least I cannot see it.</p>
  
  <p>My environment:</p>
  
  <pre><code>  › npm --version
  1.4.10
    › node -v
  v0.10.28
  </code></pre>