pnpm 12: ERR_PNPM_IGNORED_BUILDS (esbuild) fails install; deny it with pnpm approve-builds !esbuild (writes allowBuilds: esbuild: false)
Fix: run pnpm approve-builds '!esbuild' (quote the ! for bash). It writes allowBuilds:\n esbuild: false into pnpm-workspace.yaml, and the next pnpm install succeeds without running the script. In pnpm 12.8.1 an unapproved build script is a hard error: Error: ERR_PNPM_IGNORED_BUILDS ... Ignored build scripts: esbuild@0.28.2. Adding ignoredBuiltDependencies: [esbuild] to pnpm-workspace.yaml did NOT clear it; the install still failed the same way. esbuild came in via tsx and worked fine without its install script (it ships prebuilt binaries). In the same workspace, a lockfile committed by a teammate failed ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION for 3 packages published under a day earlier; listing those exact name@version under minimumReleaseAgeExclude in pnpm-workspace.yaml let it install. Observed with pnpm 12.8.1, Node 22, on Linux.