Skip to content

PNPM install succeeds but with EXIT CODE 1 #9449

@daniele-orlando

Description

@daniele-orlando

Verify latest release

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

pnpm version

10, 10.8.*, 10.9.0

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

bug.zip

Reproduction steps

rm -rf ./node_modules ./pnpm-lock.yaml
pnpm install
echo "EXIT CODE IS ($?)"
# Prints "EXIT CODE IS (1)".

Describe the Bug

Clean PNPM install (without node_modules dir and pnpm-lock file) succeeds but exits with code 1, breaking any pipeline.
Subsequent runs (with node_modules dir and pnpm-lock file) succeeds with exit code 0.

Expected Behavior

When PNPM install succeeds must exit with code 0.

Which Node.js version are you using?

22

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

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions