#14941·pnpm

`pnpm non-existent-script-name` hangs

Author: hyunbinseoCreated Sep 16, 2026Updated Sep 17, 2026
Labelstype: bug

Verify latest release

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

pnpm version

12.4.1

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

bash
pnpm -v
# 12.4.1

pnpm init

pnpm fmt 
# Already up to date
# Done in 72ms using pnpm v12.4.1

Describe the Bug

pnpm fmt attempts to call a nonexistent script and it hangs.

Expected Behavior

pnpm fmt should fail.

Which Node.js version are you using?

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