shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
75.12k stars 4.69k forks source link

[bug]: cli tries to use yarn when I use pnpm #5810

Open babakfp opened 1 week ago

babakfp commented 1 week ago

Describe the bug

 pnpm dlx shadcn@latest add drawer

✔ Checking registry.
⠋ Installing dependencies.
Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

Command failed with exit code 1: yarn add vaul @radix-ui/react-dialog
'yarn' is not recognized as an internal or external command,
operable program or batch file.

same happened with the init command too.

Affected component/components

*

How to reproduce

  1. npx shadcn@latest init -d

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

i don't have yarn installed.

Before submitting