title: How to tell if an npm package was installed globally or locally
body: <p>I am installing <a href="https://en.wikipedia.org/wiki/Grunt_(software)" rel="nofollow noreferrer">Grunt</a>, <a href="https://en.wikipedia.org/wiki/Node.js" rel="nofollow noreferrer">Node.js</a>, npm, <a href="https://bower.io/" rel="nofollow noreferrer">Bower</a>, and grunt-cli on <a href="https://en.wikipedia.org/wiki/Windows_7" rel="nofollow noreferrer">Windows 7</a>.</p>
  <p>The instructions say I should run the install commands with the <em>-g</em> flag for global.</p>
  <p>How can I check if I used the -g flag when I installed? It will take a lot of time to uninstall them and reinstall.</p>