title: Is there a way for `npm pack` to include all dependency packages recursively instead of just the base package? Why does it do that?
body: <p>For example in this picture:</p>
  <p><a href="https://i.stack.imgur.com/XYjIe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XYjIe.png" alt="enter image description here" /></a></p>
  <p><code>npm pack</code> only packages the contents of <code>electron-builder@22.8.1</code>, but I'd like it to package all of the required 14 dependencies and then its children dependencies recursively until I know I could use <code>electron-builder@22.8.1</code> correctly with a <code>npm install</code> with no troubles.</p>
  <p>Is there a way to do this?</p>
  <p>Why does <code>npm pack</code> only do the top level instead of all the packages associated with it?</p>
  <p>For context, I'm going this way instead of simply <code>npm install electron-builder</code> because I'm packaging these items to be installed in an offline computer.</p>