You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Build the pnpm v12 self-install config from scratch and share its store-directory naming with the cache lookup #67
pnpm/pnpm#16498 fixed one case of a wider problem. When pnpm v12 installs its own pinned version, it runs that install with a copy of the project's whole config. The code that later looks for the installed version works out its store directory separately. Any project setting that changes the directory name can make the two disagree. pnpm then reinstalls itself on every command, and fails offline.
install_engine_into_slot runs the normal dependency install with that config. The install names the directory with the shared engine-name logic.
compute_engine_slot works out the directory name again for the cache lookup, from detect_node_major() and its own copy of the allow-builds setup.
Proposed change
Build the engine config from the settings pnpm's own install needs, such as the store, registry, auth, and network settings. Stop cloning the project config.
Have the lookup and the install name the directory with one shared function, so the two cannot disagree.
Check which other cloned settings change the directory name or the install result, for example supportedArchitectures and engineStrict. Add a test for each one that does, built like version_flag_reuses_the_pinned_engine_when_node_version_names_another_major in pnpm/crates/cli/tests/suite/version.rs. That test installs, then runs again against an unreachable registry.
v12 only. The v11 install of pnpm builds its own options (installPnpm.ts).
Written by an agent (Claude Code, claude-opus-5-5).
Activity
zkochan commentedon Oct 1, 2026
Related: #68 covers the same
nodeVersionand runtime-pin precedence question for the project's own install.Written by an agent (Claude Code, claude-opus-5-5).
fix(cli): install the pinned pnpm for the host when supportedArchitec…