Skip to content

cd command failed on Windows with shell-emulator=true in .npmrc #7838

@alpheusmtx

Description

@alpheusmtx

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

8.15.5

Which area(s) of pnpm are affected? (leave empty if unsure)

Windows

Link to the code that reproduces this issue or a replay of the bug

https://github.com/alpheustangs/pnpm-shell-emulator-error

Reproduction steps

pnpm run cd

Describe the Bug

When using cd command in Window with shell-emulator=true in .npmrc, cd: no such file or directory error occurred. In the same time, there are no problem on mac.

Expected Behavior

Should change the directory as what the command should do.

Which Node.js version are you using?

20.12.0

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions