Skip to content

[bug]: npx shadcn@latest add dialog not working! #11234

Description

@TharukaDananjaya

Describe the bug

When i try to install dialog via npx shadcn@latest add dialog, Its saying this:

Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

Command failed with ENOENT: pnpm add -- radix-ui
spawn pnpm ENOENT

You can also try a previous version to see if that works:
npx shadcn@4.12.0 add dialog

And if i try to install via npx shadcn@4.12.0 add dialog its showing:

Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

Command failed with ENOENT: pnpm add -- radix-ui
spawn pnpm ENOENT

You can also try a previous version to see if that works:
npx shadcn@4.11.0 add dialog

Affected component/components

Dialog

How to reproduce

try to install dialog
npx shadcn@latest add dialog

Codesandbox/StackBlitz link

No response

Logs

Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

Command failed with ENOENT: pnpm add -- radix-ui
spawn pnpm ENOENT

You can also try a previous version to see if that works:
npx shadcn@4.12.0 add dialog

System Info

npx -v 10.9.2

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions