Skip to content

pnpm install says "Already up to date" but pnpm-workspace.yaml has a dependency change #12418

Description

@madebyjulz

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)

Dependencies resolver

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

No response

Reproduction steps

I updated the dependencies and afterwards i restored a dependency to its previous version in the pnpm-workspace.yaml. Running pnpm i does not installs the correct version but says "Already up to date". pnpm _dependency_ --version tells that im still on the updated version. Changing the version to something totally different runs the install correctly.

Describe the Bug

I updated the dependencies and afterwards i restored a dependency to its previous version in the pnpm-workspace.yaml. Running pnpm i does not installs the correct version but says "Already up to date". pnpm *dependency* --version tells that im still on the updated version. Changing the version to something totally different runs the install correctly.

Expected Behavior

Install the correct version listed in pnpm-workspace.yaml

Which Node.js version are you using?

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

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions