Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: init with bunx error postinstall from msw #6876

Open
2 tasks done
aryomuzakki opened this issue Mar 6, 2025 · 3 comments
Open
2 tasks done

[bug]: init with bunx error postinstall from msw #6876

aryomuzakki opened this issue Mar 6, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@aryomuzakki
Copy link

Describe the bug

Cannot init shadcn with bun

after install nextjs with bun create next-app@latest . --yes, then I tried to init shadcn with this command:

bunx --bun shadcn@latest init

it gives this error at the end:

  ⚙️  msw [1/1] error: could not determine executable to run for package exec

error: postinstall script from "msw" exited with 1

trying with shadcn@canary result in the same error.

Affected component/components

initialization

How to reproduce

  1. install nextjs 15: bun create next-app@latest . --yes
  2. init shadcn: bunx --bun shadcn@latest init

Codesandbox/StackBlitz link

No response

Logs

⚙️  msw [1/1] error: could not determine executable to run for package exec

error: postinstall script from "msw" exited with 1

System Info

- windows 10
- bun v1.2.2
- next v15.2.1
- react v19.0.0

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@aryomuzakki aryomuzakki added the bug Something isn't working label Mar 6, 2025
@jpsilvestrini
Copy link

the same for me

@AlphaLiu
Copy link

AlphaLiu commented Mar 7, 2025

same issue for me, upgrade bun from 1.2.2 to 1.2.4 resolved the issue.

@praiseakinsola
Copy link

same issue for me, upgrade bun from 1.2.2 to 1.2.4 resolved the issue.

this worked for me as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants