Skip to content

Pnpm install hangs indefinitely #8370

Description

@hoghweed

Verify latest release

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

pnpm version

v9.6.0

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

No response

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

No response

Reproduction steps

  • create an pnpm workspace
  • setup nvm with .nvmrc with 20.16.0
  • add a new nodejs simple app and name it app1
  • install the langchain package from the root pnpm add langchain --filter app1

Describe the Bug

  • Once installed, if you try to update using the pnpm update --latest --recursive pnpm hangs indefinitely
  • Once installed, if you try to recreated the pnpm lockfile from the root pnpm hangs indefinitely

The only way I make it working is to remove langchain from package.json, update and then reinstall from scratch.

With langchain installed I can't install any new package.

I executed the install command using --reporter ndjson and noticed it hangs when trying to resolve the graphql package.

I'm getting crazy because there's no logic in this behavior.
Any help would be more than appreciated.

Expected Behavior

  • if executing pnpm add to add a package
  • if executing pnpm update to perform update

everything without hanging indefinitely

Which Node.js version are you using?

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

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions