#4188·forge

Support pnpm workspace

Author: Dominic-MarcelinoCreated Mar 24, 2026Updated Jul 22, 2026

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem description

When using pnpm, forge requires node-linker=hoisted in the project's .npmrc configuration. If the project is a monorepo with electorn inside e.g root/app, node-linker=hoisted means all node-modules are hoisted into the root/node_modules. However electron-forge expects the node-modules to be present in the apps-root (root/app/node_modules) and therewith wont resolve native modules during build...

Proposed solution

Support linked node-modules to be compatible with pnpm stores

Alternatives considered

Additional information

No response