title: Force install devDependencies to global with yarn or npm?
body: <p>I use <code>eslint</code>, <code>gulp</code>, etc.. module global with :</p>
  
  <pre><code>yarn global add name_of_them
  </code></pre>
  
  <p>and almost my project use it with <code>devDependencies</code>, I have idea that just install in global and add it to <code>NODE_PATH</code>, some build script can call <code>require</code> it.</p>
  
  <p>But sometime, I use some module is not installed, and I type: <code>yarn</code> to install it.
  Some module call other module with path like: <code>../name_other_module</code>, it will break if I install one in local, one global.</p>
  
  <p>Can I install module in <code>devDependencies</code> to my global path ?</p>
  
  <p>Thank in advance.</p>