Skip to content

Conversation

beyondkmp
Copy link
Collaborator

@beyondkmp beyondkmp commented Feb 5, 2025

Fix #8842

Root Cause

Some node_modules are not installed via npm install/yarn install, but are directly copied or generated through commands or scripts. This can cause npm list to throw errors, as shown below.

image

How to fix

Only read dependencies and optionalDependencies, and remove all the others.

Copy link

changeset-bot bot commented Feb 5, 2025

🦋 Changeset detected

Latest commit: 19c79c8

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 changed the title Fix: use include instead of moit for npm list Fix: use include instead of omit for npm list Feb 5, 2025
@mmaietta mmaietta changed the title Fix: use include instead of omit for npm list fix: use include instead of omit for npm/yarn list Feb 5, 2025
@beyondkmp beyondkmp changed the title fix: use include instead of omit for npm/yarn list fix: delete peerDepenencies when collecting node modules Feb 5, 2025
@mmaietta mmaietta changed the title fix: delete peerDepenencies when collecting node modules fix: delete peerDependencies when collecting node modules tree Feb 5, 2025
@mmaietta mmaietta merged commit 53ee6c6 into electron-userland:master Feb 5, 2025
16 checks passed
@github-actions github-actions bot mentioned this pull request Feb 5, 2025
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.

builds broken since v26.0.4
2 participants