
4 Pitfalls in pnpm v10→v11 Upgrade: Docker and CI Environment Solutions
lin-yuchen2026.05.29
- • pnpm v11 blocks postinstall scripts by default; allowBuilds configuration required for native module builds
- • Dockerfile must copy pnpm-workspace.yaml and set ENV CI=true to avoid interactive prompts during builds
- • verifyDepsBeforeRun defaults to install mode, breaking pnpm run in offline/restricted networks; disable or set to warn