title: How a project is installed with npm install command
body: <pre><code>$ sudo npm install -g phonegap
  </code></pre>
  
  <p>How <code>phonegap</code> is installed when I run this command.Reason for my doubt is that, we are not mentioning any ip here, then how and from where it grabs the content?
  consider phone gap is just an example.</p>
  
  <p>I read <a href="https://stackoverflow.com/questions/25897908/how-npm-install-works">this</a> but not describes the details.</p>