Skip to content

version conflict: update shadcn cli usage #1178

@dmetelin

Description

@dmetelin

Provide environment information

System:
OS: macOS 14.5
CPU: (8) arm64 Apple M1
Memory: 457.36 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 21.6.2 - /usr/local/bin/node
Yarn: 1.22.22 - /usr/local/bin/yarn
npm: 10.8.1 - /usr/local/bin/npm
pnpm: 9.9.0 - /opt/homebrew/bin/pnpm
Watchman: 2024.07.15.00 - /opt/homebrew/bin/watchman

Describe the bug

Update pnpm ui-add to use the new shadcn cli:
https://ui.shadcn.com/docs/cli

pnpm dlx shadcn-ui add && prettier src --write --list-different

│
│  ENOENT  Command failed with ENOENT: shadcn-ui add
│ spawn shadcn-ui ENOENT

Change to:

pnpm dlx shadcn add && prettier src --write --list-different

Link to reproduction

https://ui.shadcn.com/docs/cli

To reproduce

Update shadcn to the latest version.
Run pnpm ui-add

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions