title: What is the difference between installing a package locally and globally using npm?
body: <p>What is the difference between installing a package locally and globally using npm?</p>
  
  <p>From my understanding:</p>
  
  <p>Locally install: npm install &lt;package&gt;</p>
  
  <ol>
  <li>This package/module will find on your local node_modules folder and
  can only be usable for this project.</li>
  <li>This package/module can be accessible in using require("package")
  from code.</li>
  <li>This package/module can't be accessible in command line interface.</li>
  </ol>
  
  <p>Globally install: npm install &lt;package&gt; -g</p>
  
  <ol>
  <li>This package/module will find on where node is installed in your machine like /usr/local and can be usable everywhere.</li>
  <li>This package/module can't be accessible in using require("package")
  from code.</li>
  <li>This package/module can be accessible in command line interface.</li>
  </ol>
  
  <p>Please let me know. If I could misunderstand anything here. Thanks!</p>