Skip to content

Latest @electron-forge/core-utils install is blocked in PNPM with blockExoticSubdeps #4267

@s0

Description

@s0

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 bug that matches the one I want to file, without success.

Forge version

7.11.1

Electron version

33.3.1

Operating system

macOS

Last known working Forge version

No response

Expected behavior

pnpm installs @electron-forge/cli without issue

Actual behavior

PNPM fails to install with the following message:

[ERR_PNPM_EXOTIC_SUBDEP] Exotic dependency "@electron/node-gyp" (resolved via git-repository) is not allowed in subdependencies when blockExoticSubdeps is enabled

This error happened while installing the dependencies of @electron-forge/cli@7.11.1
 at @electron-forge/core-utils@7.11.1
 at @electron/rebuild@3.7.2

Steps to reproduce

Use pnpm with a version > v10.26.0, and without disabling blockExoticSubdeps in pnpm-workspace.yaml

Additional information

@electron/rebuild v4+ has addressed this issue and uses version specifiers instead, however it has a number of breaking changes, including bumping minimum node version to 22.12.0.

Given the recent supply-chain attacks & compromises, we should really be following best practices and leaning into all security recommendations, including blocking such dependencies from being installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions