shadcn-ui/ui

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

Closed this issue · 1 comments

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

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

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.