Skip to content

fix(build): resolve ERR_PNPM_IGNORED_BUILDS for electron-winstaller#2

Merged
TYBLHQY merged 1 commit into
masterfrom
worktree-fix-pnpm-builds-config
Jul 18, 2026
Merged

fix(build): resolve ERR_PNPM_IGNORED_BUILDS for electron-winstaller#2
TYBLHQY merged 1 commit into
masterfrom
worktree-fix-pnpm-builds-config

Conversation

@TYBLHQY

@TYBLHQY TYBLHQY commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Problem

pnpm install and pnpm dev failed with:

ERR_PNPM_IGNORED_BUILDS: Ignored build scripts: electron-winstaller@5.4.0

pnpm dev internally runs a dependency check (pnpm install) before starting Vite, so both commands were blocked.

Root Cause

pnpm-workspace.yaml had an unresolved placeholder in the allowBuilds map:

allowBuilds:
  electron-winstaller: set this to true or false   # ← invalid boolean

Pnpm 11.x interprets any non-true value as unapproved, blocking the install script.

Fix

Changed to explicit true:

allowBuilds:
  electron-winstaller: true

electron-winstaller's install script selects the correct 7-Zip architecture — it's a safe build to approve.

Verified

  • pnpm install → exit 0, all deps installed
  • pnpm dev → Vite dev server starts, Electron window opens

🤖 Generated with Claude Code

The allowBuilds map in pnpm-workspace.yaml had an unresolved
placeholder value 'set this to true or false' for electron-winstaller,
which caused pnpm 11.x to block the install script. pnpm dev internally
runs a dependency check that failed with ERR_PNPM_IGNORED_BUILDS,
preventing the dev server from starting.

Changed to explicit true to allow electron-winstaller's 7-Zip arch
selection script to run during install.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@TYBLHQY
TYBLHQY marked this pull request as ready for review July 18, 2026 21:53
@TYBLHQY
TYBLHQY merged commit c26271e into master Jul 18, 2026
1 check passed
@TYBLHQY
TYBLHQY deleted the worktree-fix-pnpm-builds-config branch July 18, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant