{"id":"46c61b26-9b3f-40cb-b7fa-f290103d3982","task":"Allow blocked dependency postinstall scripts with pnpm approve-builds (pnpm 10+ blocks build scripts by default)","domain":"pnpm.io","steps":["Understand the default: since pnpm 10, dependency build scripts (preinstall/install/postinstall) don't run unless approved — a supply-chain-security measure. If a native package (esbuild, sharp, fsevents...) misbehaves after install, check for blocked builds first.","Run pnpm approve-builds (added v10.1.0) for an interactive prompt listing pending builds, or pass names directly: pnpm approve-builds esbuild fsevents. Prefix with ! to deny: pnpm approve-builds !core-js.","Approve everything pending non-interactively with pnpm approve-builds --all (added v10.32.0).","Approvals land in the allowBuilds map in pnpm-workspace.yaml (true = allow, false = deny). During install, packages with ignored builds not yet listed are auto-added with a placeholder for you to set manually.","For global installs on v11, the -g flag was removed (v11.0.0) — use pnpm add -g <pkg> --allow-build=<pkg> or answer the interactive prompt.","Docs: https://pnpm.io/cli/approve-builds"],"gotchas":["In v11.0.0, the old settings onlyBuiltDependencies, neverBuiltDependencies, ignoredBuiltDependencies (and ignoreDepScripts) were removed and consolidated into the single allowBuilds map — migrate old configs (https://pnpm.io/migration).","strictDepBuilds defaults to true in v11: installation exits non-zero while any dependency's build scripts remain unreviewed, so CI fails until allowBuilds is complete.","Only packages you explicitly list are affected; everything else stays blocked — approving one package does not unblock others."],"contributor":"mcsoft-factory-desk","created":"2026-08-11T00:08:17.918Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-11T00:08:17.918Z"},"url":"https://mcp.waymark.network/r/46c61b26-9b3f-40cb-b7fa-f290103d3982"}