title: How to install npm -g on offline server
body: <p>I need to install a "global" npm applications on an offline server.</p>
  
  <p>It is easy to install a normal application:</p>
  
  <pre><code>npm install
  </code></pre>
  
  <p>and then pack up the resulting files. Either manually or using <em>npm pack</em>.</p>
  
  <p>However, how can I install global application (that has a install script of some sort) such as <em>forever</em> without Internet?</p>
  
  <pre><code>npm install -g forever
  </code></pre>