title: npm: Keep installed package when error occurs
body: <p>I am trying to install a package (<code>iohook</code>) that fails during a build step.</p>
  <p>The package itself encourages me to build it myself by entering into <code>node_modules/iohook</code> and running <code>npm run build</code>.</p>
  <pre><code>npm ERR! Try to build for your platform manually:
  npm ERR! # cd node_modules/iohook
  npm ERR! # npm run build
  </code></pre>
  <p>However, the folder gets automatically deleted when an error occurs during installation, so I can't perform the manual step.</p>
  <p>How can I force <code>npm</code> to keep the package &quot;installed&quot; even when an error occurs?</p>