Skip to content

pnpm config list | <command> results in EPIPE #10027

@ghost

Description

Verify latest release

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

pnpm version

No response

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

CLI

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

No response

Reproduction steps

  1. Start with the following
    • Node.js v22 or v24
    • pnpm v10.17.1
    • with/without additional pnpm configuration
    • inside/outside JS project
  2. Run pnpm config list | echo

Describe the Bug

EPIPE error occurs.

Details
node:events:497
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at afterWriteDispatched (node:internal/stream_base_commons:159:15)
    at writeGeneric (node:internal/stream_base_commons:150:3)
    at Socket._writeGeneric (node:net:966:11)
    at Socket._write (node:net:978:8)
    at writeOrBuffer (node:internal/streams/writable:572:12)
    at _write (node:internal/streams/writable:501:10)
    at Writable.write (node:internal/streams/writable:510:10)
    at main (<HOME>/.local/share/pnpm/global/5/.pnpm/pnpm@10.17.1/node_modules/pnpm/dist/pnpm.cjs:199754:9)
    at async runPnpm (<HOME>/.local/share/pnpm/global/5/.pnpm/pnpm@10.17.1/node_modules/pnpm/dist/pnpm.cjs:199957:5)
    at async <HOME>/.local/share/pnpm/global/5/.pnpm/pnpm@10.17.1/node_modules/pnpm/dist/pnpm.cjs:199949:7
Emitted 'error' event on Socket instance at:
    at emitErrorNT (node:internal/streams/destroy:170:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  errno: -32,
  code: 'EPIPE',
  syscall: 'write'
}

Expected Behavior

Piping to another command works.

Which Node.js version are you using?

22.19.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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions