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
Windows Codex Desktop uses bundled pnpm before user pnpm, causing packageManager mismatch and non-TTY abort #30541
Then normal workspace commands fail before the project script runs:
pnpm check
ERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTY
Aborted removal of modules directory due to no TTY
The same command works when I explicitly call the user-global pnpm:
&"$env:APPDATA\npm\pnpm.cmd" check
10.34.1
svelte-check found 0 errors and 0 warnings
pnpm test and pnpm build also pass with the user-global pnpm.
What steps can reproduce the bug?
Open Codex Desktop on Windows.
Open a pnpm project that declares packageManager, for example [email protected].
Ensure user-global pnpm is installed under %APPDATA%\npm.
Run:
Get-Command pnpm -All
pnpm --version
pnpm check
Observe that Codex's bundled pnpm is used before the user-global pnpm.
What is the expected behavior?
Codex should not let its bundled pnpm shadow the package manager normally resolved by the user's shell or requested by the project.
A normal workspace command like pnpm check should use the same pnpm version as a normal Windows terminal, or otherwise respect the project's packageManager version.
Additional information
This may be related to #19549 and #3915, but the failure mode here is different: the bundled Codex pnpm changes the effective pnpm version from 10.34.1 to 11.7.0, which then triggers pnpm's non-TTY modules purge abort before the project script runs.
Activity
github-actions commentedon Jun 29, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
cubicj commentedon Jun 29, 2026
Closing as a duplicate of #30440. I moved the Windows reproduction details there: #30440 (comment)