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

Failed on initial start (bun) #31

Open
unpseudocomplique opened this issue Aug 6, 2024 · 3 comments
Open

Failed on initial start (bun) #31

unpseudocomplique opened this issue Aug 6, 2024 · 3 comments
Assignees
Labels
bug Something isn't working nuxt-module

Comments

@unpseudocomplique
Copy link

Hi, thanks for the nuxt module !

I belive this may be linked to the fact that i'm using Bun.

i have this error on the first start after module install :
image

The strange part is that in the error it's written "npx npx". Anyway in bun this should be "bunx":

bunx prisma init --datasource-provider postgresql
Work fine

Maybe https://unjs.io/packages/nypm could help ?

(i have installed node with nvm and desactived it to have the full power of bun with
nvm deactivate)

@unpseudocomplique
Copy link
Author

ho sorry bunx prisma init --datasource-provider postgresql did not give me any error but did nothing !

@ankur-arch
Copy link
Contributor

The strange part is that in the error it's written "npx npx"
Thanks @unpseudocomplique , caught a small bug here 😄 .
#33

Maybe unjs.io/packages/nypm could help ?

This looks interesting 😄 , will take a look at it!

@Ed1ks
Copy link

Ed1ks commented Aug 28, 2024

Sadly prisma does not run with bun, pnpm, nor yarn.
https://stackblitz.com/edit/nuxt-starter-zgouyq

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

No branches or pull requests

4 participants