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
58.56k stars 3.19k forks source link

[bug]: add command fails trying to use bun vs current package manager #3544

Closed gaurangrshah closed 3 weeks ago

gaurangrshah commented 3 weeks ago

Describe the bug

I have to preface this with saying that my project is a bit oddly scaffolded. It mimics the shadcn ui repo to some degree and in order to get it up and running we had to make some decisions that may have not been the best. For a better reference here's the monorepo structure that we're using.

├── README.md
├── bun.lockb # < --- the install actually added a bun.lockb file 
├── next-env.d.ts
├── og.png
├── package-lock.json
├── package.json
└── packages
    ├── cli
    └── site

here's the install command and output:

➜ npx shadcn-ui@latest add avatar  
⠋ Installing components...Command failed with ENOENT: bun add @radix-ui/react-avatar
spawn bun ENOENT

Affected component/components

all

How to reproduce

I'm not really sure, how to reproduce. the repo is currently public -- if someone wants to try.

Codesandbox/StackBlitz link

https://github.com/trnsprncy/ui

Logs

➜ npx shadcn-ui@latest add avatar  
⠋ Installing components...Command failed with ENOENT: bun add @radix-ui/react-avatar
spawn bun ENOENT

System Info

Project is a npm workspace monorepo. The package in question is the `site` package.

Before submitting

gaurangrshah commented 3 weeks ago

It seems this issue was specific to my system. I'm going to close it because it doesn't seem to be a broader problem.