title: How to make pnpm use symlinks for a global directory?
body: <p>I started using <a href="https://pnpm.js.org/" rel="nofollow noreferrer">pnpm</a> for my Electron project because it is faster than <code>npm</code> or <code>yarn</code>. As far as I can see it creates all modules first in <code>project/node_modules/.pnpm</code> and all packages in <code>project/node_modules</code> refer to a module inside the <code>.pnpm</code> directory.</p>
  <p>This is already an improvement, but is there a way to put <code>.pnpm</code> outside?</p>
  <p>At the moment my Gitlab runner deletes <code>node_modules</code> and the containing <code>.pnpm</code> directory every pipeline. In that case it would have a global project node_modules directory I could keep over many pipelines. Thank you!</p>