Skip to content

create-nx-workspace fails when using pnpm #30075

Open
@AlexanderOpran

Description

Current Behavior

Image

Trying to create a workspace with nx and pnpm as the package manager, fails. This only happens if I use pnpm as the package manager (--pm pnpm).

OS: Windows 11 Pro 24H2 26100.3194
Node: v22.14.0
Nx: 20.4.4

PNPM is installed through CorePack (9.15.4). Using any other version of PNPM (even the latest one) results in the same error. Even if PNPM is installed through NPM or Winget or anything else.

The same command works on Linux and MacOS. (same PNPM version).

Expected Behavior

I should be able to successfully create a workspace with npx create-nx-workspace --pm pnpm.

GitHub Repo

No response

Steps to Reproduce

npx create-nx-workspace --pm pnpm

Nx Report

N/A

Failure Logs

Package Manager Version

PNPM 9.15.4

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions