Skip to content

Conversation

beyondkmp
Copy link
Contributor

fix #9259

After multiple npm installations, it returns paths for optional dependencies that don't match the current system's platform and architecture. We directly filter out packages that don't exist and print the corresponding logs.

npm issue: npm/cli#8535

Added a check to ensure the existence of dependency paths before processing them, addressing issues related to missing paths in npm list. This change improves the robustness of the dependency collection logic.
Copy link

changeset-bot bot commented Sep 12, 2025

🦋 Changeset detected

Latest commit: 0730650

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
app-builder-lib Patch
dmg-builder Patch
electron-builder-squirrel-windows Patch
electron-builder Patch
electron-forge-maker-appimage Patch
electron-forge-maker-nsis-web Patch
electron-forge-maker-nsis Patch
electron-forge-maker-snap Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@beyondkmp beyondkmp merged commit 38c2085 into electron-userland:master Sep 12, 2025
21 checks passed
@beyondkmp beyondkmp deleted the optionalDepMiss branch September 15, 2025 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot build when optional dependencies are missing

2 participants