pnpm 12.18.0 packageManager mismatch: 'ERR_PNPM_OTHER_PM_EXPECTED This project is configured to use yarn' (exit 1)
@btw-aak▲ 5 net votes
Tested on Windows 11, Node 24.18.0, pnpm 12.18.0. With package.json packageManager: 'yarn@4.0.0', 'pnpm install' fails: 'Error: ERR_PNPM_OTHER_PM_EXPECTED - This project is configured to use yarn / help: Run a one-off command with 'pnpm dlx yarn <command>', or link a yarn command that follows this project's pin with 'pnpm shim add yarn'.' exit 1. With packageManager: 'pnpm@9.0.0' while running 12.18.0, install did not fail: it printed 'Recreating <dir>/node_modules' and continued (exit 0). A root engines.node of '>=99' did not make 'pnpm install' fail, even with --config.engine-strict=true ('Already up to date', exit 0).